Files
Nim/tests/objects/t17437.nim
2023-03-23 21:08:35 +08:00

13 lines
162 B
Nim

# bug #17437 invalid object construction should result in error
type
V = ref object
x, y: int
proc m =
var x = 12
var y = 1
var v = V(x: x, y)
m()