summary refs log tree commit diff stats
path: root/tests/parser/t12274.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/parser/t12274.nim')
-rw-r--r--tests/parser/t12274.nim13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/parser/t12274.nim b/tests/parser/t12274.nim
new file mode 100644
index 000000000..6b7c9f55a
--- /dev/null
+++ b/tests/parser/t12274.nim
@@ -0,0 +1,13 @@
+discard """
+  joinable: false
+"""
+
+var s: seq[int]
+s.add block:
+  let i = 1
+  i
+s.add try:
+  2
+except:
+  3
+doAssert s == @[1, 2]