allow proc expressions in place of statements (#20935)
properly fixes #18714
This commit is contained in:
parent
555c5ed1a7
commit
15d00ca0e1
2 changed files with 18 additions and 7 deletions
3
tests/parser/tprocexprasstmt.nim
Normal file
3
tests/parser/tprocexprasstmt.nim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
func r(): auto =
|
||||
func(): int = 2
|
||||
discard r()()
|
||||
Loading…
Add table
Add a link
Reference in a new issue