summary refs log tree commit diff stats
path: root/tests/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib')
-rw-r--r--tests/stdlib/mjsonexternproc.nim10
-rw-r--r--tests/stdlib/tjsonexternproc.nim5
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/stdlib/mjsonexternproc.nim b/tests/stdlib/mjsonexternproc.nim
new file mode 100644
index 000000000..2967a1168
--- /dev/null
+++ b/tests/stdlib/mjsonexternproc.nim
@@ -0,0 +1,10 @@
+# Test case for https://github.com/nim-lang/Nim/issues/6385
+
+import json
+# export json
+
+proc foo*[T](a: T) =
+  let params = %*{
+    "data": [ 1 ]
+  }
+  echo $params
\ No newline at end of file
diff --git a/tests/stdlib/tjsonexternproc.nim b/tests/stdlib/tjsonexternproc.nim
new file mode 100644
index 000000000..ec90e580d
--- /dev/null
+++ b/tests/stdlib/tjsonexternproc.nim
@@ -0,0 +1,5 @@
+# Test case for https://github.com/nim-lang/Nim/issues/6385
+
+import mjsonexternproc
+# import json
+foo(1)
\ No newline at end of file