summary refs log tree commit diff stats
path: root/tests/parser/tprocexprasstmt.nim
diff options
context:
space:
mode:
authormetagn <metagngn@gmail.com>2022-11-29 08:37:00 +0300
committerGitHub <noreply@github.com>2022-11-29 06:37:00 +0100
commit15d00ca0e1c0a3c0eb29b6d4500d6915e2446a6f (patch)
tree7d5bb3d68707dd9bfa1731982b3496ceb8867a4e /tests/parser/tprocexprasstmt.nim
parent555c5ed1a73fa783ee5b7526cb7a3f773f3b7f33 (diff)
downloadNim-15d00ca0e1c0a3c0eb29b6d4500d6915e2446a6f.tar.gz
allow proc expressions in place of statements (#20935)
properly fixes #18714
Diffstat (limited to 'tests/parser/tprocexprasstmt.nim')
-rw-r--r--tests/parser/tprocexprasstmt.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/parser/tprocexprasstmt.nim b/tests/parser/tprocexprasstmt.nim
new file mode 100644
index 000000000..a02dde6f6
--- /dev/null
+++ b/tests/parser/tprocexprasstmt.nim
@@ -0,0 +1,3 @@
+func r(): auto =
+  func(): int = 2
+discard r()()