fixes a test case
This commit is contained in:
parent
6152eb3be3
commit
942db8c5f3
1 changed files with 3 additions and 1 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue