bugfix: multiple yield statements and loop body vars
This commit is contained in:
parent
e7fe8edab3
commit
63ac32e6de
13 changed files with 256 additions and 75 deletions
18
tests/accept/compile/toop.nim
Normal file
18
tests/accept/compile/toop.nim
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
|
||||
type
|
||||
TA = object
|
||||
x, y: int
|
||||
|
||||
TB = object of TA
|
||||
z: int
|
||||
|
||||
TC = object of TB
|
||||
whatever: string
|
||||
|
||||
proc p(a: var TA) = nil
|
||||
proc p(b: var TB) = nil
|
||||
|
||||
var c: TC
|
||||
|
||||
p(c)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue