summary refs log tree commit diff stats
path: root/tests/modules
diff options
context:
space:
mode:
authorClyybber <darkmine956@gmail.com>2020-06-25 15:12:30 +0200
committerGitHub <noreply@github.com>2020-06-25 15:12:30 +0200
commit0a9a63923060cab29f0d0d9f8dec7fd9a37222e6 (patch)
treea0691fd45d080400584b0a95fc7a903563187421 /tests/modules
parent1a0725f022299ab345a34250d37d25498664184a (diff)
downloadNim-0a9a63923060cab29f0d0d9f8dec7fd9a37222e6.tar.gz
Add testcase for #4796 (#14784)
* Add testcase for #4796

* Fix test
Diffstat (limited to 'tests/modules')
-rw-r--r--tests/modules/seq.nim5
-rw-r--r--tests/modules/tseq.nim8
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/modules/seq.nim b/tests/modules/seq.nim
new file mode 100644
index 000000000..176e44025
--- /dev/null
+++ b/tests/modules/seq.nim
@@ -0,0 +1,5 @@
+var seq: seq[int]
+var b: seq[float]
+
+echo seq
+echo b
diff --git a/tests/modules/tseq.nim b/tests/modules/tseq.nim
new file mode 100644
index 000000000..22ee48f42
--- /dev/null
+++ b/tests/modules/tseq.nim
@@ -0,0 +1,8 @@
+discard """
+  joinable: false
+  output: '''@[]
+@[]
+'''
+"""
+
+import seq