diff options
author | Jason Beetham <beefers331@gmail.com> | 2022-10-21 22:37:23 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-22 06:37:23 +0200 |
commit | da0a2fdca20eb48f73fe72d777ec142674debed2 (patch) | |
tree | 41e91e75565320709c797e2968ccccef73e91bcb /tests/vm/topenarrays.nim | |
parent | 0faae4d5e29ea4eb55f3b53b1f01b91637f2c6c7 (diff) | |
download | Nim-da0a2fdca20eb48f73fe72d777ec142674debed2.tar.gz |
Unpack mSlice tupleconstr for static openarrays (#20615)
Diffstat (limited to 'tests/vm/topenarrays.nim')
-rw-r--r-- | tests/vm/topenarrays.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/vm/topenarrays.nim b/tests/vm/topenarrays.nim index 639e0c35b..0a822f583 100644 --- a/tests/vm/topenarrays.nim +++ b/tests/vm/topenarrays.nim @@ -35,6 +35,10 @@ static: assert arr.toOpenArray(3, 4).toOpenArray(0, 0) == [1] +proc doThing(s: static openArray[int]) = discard + +doThing([10, 20, 30].toOpenArray(0, 0)) + # bug #19969 proc f(): array[1, byte] = var a: array[1, byte] |