From 15d00ca0e1c0a3c0eb29b6d4500d6915e2446a6f Mon Sep 17 00:00:00 2001 From: metagn Date: Tue, 29 Nov 2022 08:37:00 +0300 Subject: allow proc expressions in place of statements (#20935) properly fixes #18714 --- tests/parser/tprocexprasstmt.nim | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tests/parser/tprocexprasstmt.nim (limited to 'tests/parser/tprocexprasstmt.nim') 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()() -- cgit 1.4.1-2-gfad0