next steps for closure iterators
This commit is contained in:
parent
85a5bfe605
commit
37229df7fc
28 changed files with 164 additions and 71 deletions
|
|
@ -1,21 +0,0 @@
|
|||
discard """
|
||||
output: "b"
|
||||
"""
|
||||
|
||||
type
|
||||
TA = object of TObject
|
||||
x, y: int
|
||||
|
||||
TB = object of TA
|
||||
z: int
|
||||
|
||||
TC = object of TB
|
||||
whatever: string
|
||||
|
||||
proc p(a: var TA) = echo "a"
|
||||
proc p(b: var TB) = echo "b"
|
||||
|
||||
var c: TC
|
||||
|
||||
p(c)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue