diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2024-05-01 15:02:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-01 09:02:43 +0200 |
commit | 185e06c92362083c06c76f87e325889b1c9dc659 (patch) | |
tree | ab7eaac8fa2601dab0cbb8c2188181be4825d752 /tests/errmsgs/t23419.nim | |
parent | d09c3c0f58eb9f1f4cf07fa98a9686aa19778f16 (diff) | |
download | Nim-185e06c92362083c06c76f87e325889b1c9dc659.tar.gz |
fixes #23419; internal error with void in generic array instantiation (#23550)
fixes #23419 `void` is only supported as fields of objects/tuples. It shouldn't allow void in the array. I didn't merge it with taField because that flag is also used for tyLent, which is allowed in the fields of other types.
Diffstat (limited to 'tests/errmsgs/t23419.nim')
-rw-r--r-- | tests/errmsgs/t23419.nim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/errmsgs/t23419.nim b/tests/errmsgs/t23419.nim new file mode 100644 index 000000000..59a72f081 --- /dev/null +++ b/tests/errmsgs/t23419.nim @@ -0,0 +1,5 @@ +discard """ + errormsg: "invalid type: 'void' in this context: '(array[0..-1, void],)' for var" +""" + +var a: (array[0, void], ) |