diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2023-05-17 06:20:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-17 00:20:40 +0200 |
commit | eecf12c4b5fa8a011b1fc1991b554a31ca9a4a27 (patch) | |
tree | 83798b5510a89efd3c608f0ca96f7ad95deb62ef /tests/vm | |
parent | ce1ba915732dfff88cd9e7d975060a2a2250cd72 (diff) | |
download | Nim-eecf12c4b5fa8a011b1fc1991b554a31ca9a4a27.tar.gz |
fixes #21708; skip colons for tuples in VM (#21850)
* fixes #21708; skip colon for tuples in VM * skip nimnodes * fixes types
Diffstat (limited to 'tests/vm')
-rw-r--r-- | tests/vm/tvmmisc.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/vm/tvmmisc.nim b/tests/vm/tvmmisc.nim index f41a918f9..9e32c9249 100644 --- a/tests/vm/tvmmisc.nim +++ b/tests/vm/tvmmisc.nim @@ -688,3 +688,13 @@ block: # bug #7590 # const c=(foo:(bar1: 0.0)) const c=(foo:(bar1:"foo1")) fun2(c) + +block: # bug #21708 + type + Tup = tuple[name: string] + + const X: array[2, Tup] = [(name: "foo",), (name: "bar",)] + + static: + let s = X[0] + doAssert s[0] == "foo" |