summary refs log tree commit diff stats
path: root/compiler/semstmts.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-09-12 10:55:28 +0200
committerAraq <rumpf_a@web.de>2015-09-12 10:55:28 +0200
commit8ef66b973d86a75c8dfa4c6761d322d94c54efad (patch)
tree1a90abf710018b92cc8d92538ae1095e6e41b006 /compiler/semstmts.nim
parent2a797c362a1c70d708eb21a18a227296dcac71a4 (diff)
downloadNim-8ef66b973d86a75c8dfa4c6761d322d94c54efad.tar.gz
first attempt to fix 'a[i]' handling in generics
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r--compiler/semstmts.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index 4399c0ab0..0bb65dc57 100644
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -1033,6 +1033,7 @@ proc semOverride(c: PContext, s: PSym, n: PNode) =
                  "signature for 'deepCopy' must be proc[T: ptr|ref](x: T): T")
     incl(s.flags, sfUsed)
   of "=":
+    if s.magic == mAsgn: return
     incl(s.flags, sfUsed)
     let t = s.typ
     if t.len == 3 and t.sons[0] == nil and t.sons[1].kind == tyVar: