make tests green again

This commit is contained in:
Araq 2018-08-13 23:16:03 +02:00
commit f91a181f58
8 changed files with 18 additions and 55 deletions

View file

@ -6,9 +6,9 @@ discard """
# bug #2355
type
Foo = object
foo: string not nil
bar: string not nil
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: "foo")
var f = Foo(foo: x)
echo f.bar.isNil # true