summary refs log tree commit diff stats
path: root/tests/arc
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2022-10-06 02:30:10 +0800
committerGitHub <noreply@github.com>2022-10-06 02:30:10 +0800
commita600dfa5b70976e72c7f332033857b3d51ffeddf (patch)
tree43c4c18848f624b29da34d11dc2be6272926d9e3 /tests/arc
parent6505bd347df557713061d4e84cf9548d104622d9 (diff)
downloadNim-a600dfa5b70976e72c7f332033857b3d51ffeddf.tar.gz
closes #11267; closes #11259; closes #11085; add testcases (#20505)
* closes #11267; add testcase

* closes #11259

* closes #11085
Diffstat (limited to 'tests/arc')
-rw-r--r--tests/arc/tarc_orc.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/arc/tarc_orc.nim b/tests/arc/tarc_orc.nim
index c6a7845b0..981567350 100644
--- a/tests/arc/tarc_orc.nim
+++ b/tests/arc/tarc_orc.nim
@@ -33,3 +33,15 @@ proc bug20303() =
   doAssert res == "are"
 
 bug20303()
+
+proc main() = # todo bug with templates
+  block: # bug #11267
+    var a: seq[char] = block: @[]
+    doAssert a == @[]
+    # 2
+    proc b: seq[string] =
+      discard
+      @[]
+    doAssert b() == @[]
+static: main()
+main()