diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-07-30 16:28:58 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-07-30 16:34:42 +0200 |
commit | 39ebe2175bd4e8e62d03875d06b24feafd36f8f7 (patch) | |
tree | e27cc59112675e052c70c6063f6bcca8e29e103c /compiler/lookups.nim | |
parent | 8876ed23f1dc6d12a8ae7bf061b7e31c3adf54b4 (diff) | |
download | Nim-39ebe2175bd4e8e62d03875d06b24feafd36f8f7.tar.gz |
compiler almost free of deprecated expr/stmt names
Diffstat (limited to 'compiler/lookups.nim')
-rw-r--r-- | compiler/lookups.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/lookups.nim b/compiler/lookups.nim index de43c4e4a..9ca864406 100644 --- a/compiler/lookups.nim +++ b/compiler/lookups.nim @@ -217,14 +217,14 @@ when defined(nimfix): of 'a'..'z': result = getIdent(toLower(x.s[0]) & x.s.substr(1)) else: result = x - template fixSpelling(n: PNode; ident: PIdent; op: expr) = + template fixSpelling(n: PNode; ident: PIdent; op: untyped) = let alt = ident.altSpelling result = op(c, alt).skipAlias(n) if result != nil: prettybase.replaceDeprecated(n.info, ident, alt) return result else: - template fixSpelling(n: PNode; ident: PIdent; op: expr) = discard + template fixSpelling(n: PNode; ident: PIdent; op: untyped) = discard proc errorUseQualifier*(c: PContext; info: TLineInfo; s: PSym) = var err = "Error: ambiguous identifier: '" & s.name.s & "'" |