Remove expr/stmt (#5857)
This commit is contained in:
parent
52ff244d5d
commit
000b8afd26
168 changed files with 497 additions and 529 deletions
|
|
@ -3,10 +3,9 @@ type Foo = object
|
|||
|
||||
var f = Foo(len: 40)
|
||||
|
||||
template getLen(f: Foo): expr = f.len
|
||||
template getLen(f: Foo): int = f.len
|
||||
|
||||
echo f.getLen
|
||||
# This fails, because `len` gets the nkOpenSymChoice
|
||||
# treatment inside the template early pass and then
|
||||
# it can't be recognized as a field anymore
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue