fixes the most pressing regressions introduced by the new handling of a[i] in the compiler

This commit is contained in:
Araq
2015-09-16 15:34:54 +02:00
parent c9a2fa54c7
commit 29a9166966
3 changed files with 45 additions and 15 deletions

View File

@@ -3465,6 +3465,7 @@ proc procCall*(x: expr) {.magic: "ProcCall", compileTime.} =
## procCall someMethod(a, b)
discard
proc `^`*[T](x: int; y: openArray[T]): int {.noSideEffect, magic: "Roof".}
proc `^`*(x: int): int {.noSideEffect, magic: "Roof".} =
## builtin `roof`:idx: operator that can be used for convenient array access.
## ``a[^x]`` is rewritten to ``a[a.len-x]``. However currently the ``a``