mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14:41 +00:00
13 lines
162 B
Nim
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()
|