summary refs log tree commit diff stats
path: root/tests/js/t11353.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/js/t11353.nim')
-rw-r--r--tests/js/t11353.nim14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/js/t11353.nim b/tests/js/t11353.nim
new file mode 100644
index 000000000..c1bc0ad4b
--- /dev/null
+++ b/tests/js/t11353.nim
@@ -0,0 +1,14 @@
+discard """
+  output: '''
+{}
+{}
+'''
+"""
+
+proc foo() =
+  var bar: set[int16] = {}
+  echo bar
+  bar.incl(1)
+
+foo()
+foo()