diff options
author | heterodoxic <122719743+heterodoxic@users.noreply.github.com> | 2023-05-27 06:54:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-27 06:54:41 +0200 |
commit | 6128ef53c5bbc6c1de4e3cadcb70db580f74dbcd (patch) | |
tree | 5ed995cef565bfdbb029050468fbe7c274dfe148 /tests/ccgbugs | |
parent | 09f36f51989dd8045129781285902f4eaa07779b (diff) | |
download | Nim-6128ef53c5bbc6c1de4e3cadcb70db580f74dbcd.tar.gz |
fix #10964 by honoring pointer deref syntax if a reified openarray is used to get an array's length (#21925)
* fix #10964 * add test
Diffstat (limited to 'tests/ccgbugs')
-rw-r--r-- | tests/ccgbugs/t10964.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ccgbugs/t10964.nim b/tests/ccgbugs/t10964.nim new file mode 100644 index 000000000..a331b16cd --- /dev/null +++ b/tests/ccgbugs/t10964.nim @@ -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) \ No newline at end of file |