fixes a test case

This commit is contained in:
Araq 2019-12-23 13:48:50 +01:00 • committed by Andreas Rumpf
commit 942db8c5f3

View file

@ -463,5 +463,7 @@ block misc_issues:
proc sayHello(c: Thing) = echo(c.hello) proc sayHello(c: Thing) = echo(c.hello)
var a: Thing = Cat() # used to be 'var a: Thing = Cat()' but that's not valid Nim code
# anyway and will be an error soon.
var a: Cat = Cat()
a.sayHello() a.sayHello()