mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 05:20:31 +00:00
fix #10964 by honoring pointer deref syntax if a reified openarray is used to get an array's length (#21925)
* fix #10964
* add test
(cherry picked from commit 6128ef53c5)
This commit is contained in:
6
tests/ccgbugs/t10964.nim
Normal file
6
tests/ccgbugs/t10964.nim
Normal file
@@ -0,0 +1,6 @@
|
||||
func test*(input: var openArray[int32], start: int = 0, fin: int = input.len - 1) =
|
||||
discard
|
||||
|
||||
var someSeq = @[1'i32]
|
||||
|
||||
test(someSeq)
|
||||
Reference in New Issue
Block a user