summary refs log tree commit diff stats
path: root/compiler/semexprs.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-07-23 20:19:05 +0200
committerAraq <rumpf_a@web.de>2011-07-23 20:19:05 +0200
commita6daf7152026fb8ab9b5aee17355e23b46d2e987 (patch)
tree0783d83d9215fbb7140e9e84a0c394f241bc7b32 /compiler/semexprs.nim
parent246b8d18a1102ddcb6435a67d6979fa2a48bf98e (diff)
downloadNim-a6daf7152026fb8ab9b5aee17355e23b46d2e987.tar.gz
old pointer deref operator completely removed
Diffstat (limited to 'compiler/semexprs.nim')
-rwxr-xr-xcompiler/semexprs.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim
index 8f84d665d..879a42d81 100755
--- a/compiler/semexprs.nim
+++ b/compiler/semexprs.nim
@@ -237,8 +237,8 @@ proc changeType(n: PNode, newType: PType) =
   of nkPar: 
     if newType.kind != tyTuple: 
       InternalError(n.info, "changeType: no tuple type for constructor")
-    if newType.n == nil: InternalError(n.info, "changeType: no tuple fields")
-    if (sonsLen(n) > 0) and (n.sons[0].kind == nkExprColonExpr): 
+    if newType.n == nil: nil
+    elif (sonsLen(n) > 0) and (n.sons[0].kind == nkExprColonExpr): 
       for i in countup(0, sonsLen(n) - 1): 
         var m = n.sons[i].sons[0]
         if m.kind != nkSym: