Files
Nim/tests/errmsgs/t23419.nim
ringabout 185e06c923 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.
2024-05-01 09:02:43 +02:00

6 lines
127 B
Nim

discard """
errormsg: "invalid type: 'void' in this context: '(array[0..-1, void],)' for var"
"""
var a: (array[0, void], )