summary refs log tree commit diff stats
path: root/compiler/sigmatch.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-07-09 08:09:00 +0200
committerAraq <rumpf_a@web.de>2012-07-09 08:09:00 +0200
commit121d4e0fc2d05d7fd3ee8dab3a8c1663c9e5a5c3 (patch)
treee81d1e5d44967dbd8a69918434d33c2c36d73c58 /compiler/sigmatch.nim
parent795afb0021094d069b5f77d4b7ba6c9e5fc5d803 (diff)
downloadNim-121d4e0fc2d05d7fd3ee8dab3a8c1663c9e5a5c3.tar.gz
'addSon' for types deprecated for 'int literal type' analysis
Diffstat (limited to 'compiler/sigmatch.nim')
-rwxr-xr-xcompiler/sigmatch.nim6
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
'>157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176