summary refs log tree commit diff stats
path: root/rod
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-01-06 00:33:56 +0100
committerAraq <rumpf_a@web.de>2011-01-06 00:33:56 +0100
commit8f41312ca685faa91a950bfce866301631d0e2a9 (patch)
treed1aeb6d83f208e571cfc8c16d2508c6f58cc7c5d /rod
parentce672c19d245827f8809dc1c914f42003cb56bdc (diff)
downloadNim-8f41312ca685faa91a950bfce866301631d0e2a9.tar.gz
bugfix: semantic checking: tuples without named fields
Diffstat (limited to 'rod')
-rwxr-xr-xrod/semexprs.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/rod/semexprs.nim b/rod/semexprs.nim
index 6ce1628d5..10ed6567e 100755
--- a/rod/semexprs.nim
+++ b/rod/semexprs.nim
@@ -662,7 +662,7 @@ proc builtinFieldAccess(c: PContext, n: PNode, flags: TExprFlags): PNode =
           check.sons[0] = n
           check.typ = n.typ
           result = check
-  elif ty.kind == tyTuple: 
+  elif ty.kind == tyTuple and ty.n != nil: 
     f = getSymFromList(ty.n, i)
     if f != nil: 
       n.sons[0] = makeDeref(n.sons[0])