mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-24 16:25:25 +00:00
allow proc expressions in place of statements (#20935)
properly fixes #18714
(cherry picked from commit 15d00ca0e1)
This commit is contained in:
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()()
|
||||
Reference in New Issue
Block a user