mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 05:50:30 +00:00
fixes a regression about indexing into UncheckedArray
This commit is contained in:
@@ -532,3 +532,7 @@ block t7818:
|
||||
|
||||
doAssert(testOpenArray(@[u.addr, v.addr, w.addr]) == "123")
|
||||
doAssert(testOpenArray(@[w.addr, u.addr, v.addr]) == "312")
|
||||
|
||||
# regression regarding unchecked array indexing:
|
||||
proc foo(x: ptr UncheckedArray[int]; idx: uint64) =
|
||||
echo x[idx]
|
||||
|
||||
Reference in New Issue
Block a user