diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-10-29 19:46:17 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-10-29 19:46:17 +0100 |
commit | d52a1061b35bbd2abfbd062b08023d986dbafb3c (patch) | |
tree | 5f18bf06f1a77ecf7081522c2b9294920ec89f5b /compiler/semstmts.nim | |
parent | c0433b0b6cd42c279cd2c259eb45636670db1fc7 (diff) | |
download | Nim-d52a1061b35bbd2abfbd062b08023d986dbafb3c.tar.gz |
work in progress: new implementation for 'a[^1]'
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r-- | compiler/semstmts.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index 55d84c6fc..540ef4c07 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -823,7 +823,7 @@ proc typeSectionLeftSidePass(c: PContext, n: PNode) = a.sons[0] = newSymNode(s) proc checkCovariantParamsUsages(genericType: PType) = - var body = genericType{-1} + var body = genericType[^1] proc traverseSubTypes(t: PType): bool = template error(msg) = localError(genericType.sym.info, msg) |