mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-10 15:04:59 +00:00
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.
6 lines
127 B
Nim
6 lines
127 B
Nim
discard """
|
|
errormsg: "invalid type: 'void' in this context: '(array[0..-1, void],)' for var"
|
|
"""
|
|
|
|
var a: (array[0, void], )
|