allow proc expressions in place of statements (#20935)

properly fixes #18714

(cherry picked from commit 15d00ca0e1)
This commit is contained in:
metagn
2022-11-29 08:37:00 +03:00
committed by narimiran
parent 0683e8f747
commit 5cfa3672b3
2 changed files with 18 additions and 7 deletions

View File

@@ -0,0 +1,3 @@
func r(): auto =
func(): int = 2
discard r()()