Remove expr/stmt (#5857)
This commit is contained in:
parent
52ff244d5d
commit
000b8afd26
168 changed files with 497 additions and 529 deletions
|
|
@ -4,7 +4,7 @@ discard """
|
|||
|
||||
# test that an endless recursion is avoided:
|
||||
|
||||
template optLen{len(x)}(x: expr): expr = len(x)
|
||||
template optLen{len(x)}(x: typed): int = len(x)
|
||||
|
||||
var s = "lala"
|
||||
echo len(s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue