allow proc expressions in place of statements (#20935)

properly fixes #18714
This commit is contained in:
metagn 2022-11-29 08:37:00 +03:00 • committed by GitHub
commit 15d00ca0e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 7 deletions

View file

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