165619552 ^
564c0acae ^
599b5d6dc ^
f91a181f5 ^
1
2
3 4
5
6 7 8
9 10 11
12
13
14
discard """ errormsg: "fields not initialized: bar" line: "13" """ {.experimental: "notnil".} # bug #2355 type Foo = object foo: ref int bar: ref int not nil var x: ref int = new(int) # Create instance without initializaing the `bar` field var f = Foo(foo: x) echo f.bar.isNil # true