diff options
author | Araq <rumpf_a@web.de> | 2012-07-09 08:09:00 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-07-09 08:09:00 +0200 |
commit | 121d4e0fc2d05d7fd3ee8dab3a8c1663c9e5a5c3 (patch) | |
tree | e81d1e5d44967dbd8a69918434d33c2c36d73c58 /compiler/sigmatch.nim | |
parent | 795afb0021094d069b5f77d4b7ba6c9e5fc5d803 (diff) | |
download | Nim-121d4e0fc2d05d7fd3ee8dab3a8c1663c9e5a5c3.tar.gz |
'addSon' for types deprecated for 'int literal type' analysis
Diffstat (limited to 'compiler/sigmatch.nim')
-rwxr-xr-x | compiler/sigmatch.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index 4a7ba9587..bb3a24823 100755 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -139,9 +139,9 @@ proc concreteType(mapping: TIdTable, t: PType): PType = of tyArrayConstr: # make it an array result = newType(tyArray, t.owner) - addSon(result, t.sons[0]) # XXX: t.owner is wrong for ID! - addSon(result, t.sons[1]) # XXX: semantic checking for the type? - of tyNil: + addSonSkipIntLit(result, t.sons[0]) # XXX: t.owner is wrong for ID! + addSonSkipIntLit(result, t.sons[1]) # XXX: semantic checking for the type? + of tyNil: result = nil # what should it be? of tyGenericParam: result = t |