fixes the most pressing regressions introduced by the new handling of a[i] in the compiler
This commit is contained in:
parent
c9a2fa54c7
commit
29a9166966
3 changed files with 45 additions and 15 deletions
|
|
@ -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``
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue