diff options
author | Araq <rumpf_a@web.de> | 2015-09-12 10:55:28 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-09-12 10:55:28 +0200 |
commit | 8ef66b973d86a75c8dfa4c6761d322d94c54efad (patch) | |
tree | 1a90abf710018b92cc8d92538ae1095e6e41b006 /compiler/semstmts.nim | |
parent | 2a797c362a1c70d708eb21a18a227296dcac71a4 (diff) | |
download | Nim-8ef66b973d86a75c8dfa4c6761d322d94c54efad.tar.gz |
first attempt to fix 'a[i]' handling in generics
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r-- | compiler/semstmts.nim | 1 |
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: |