diff options
author | Mamy Ratsimbazafy <mratsim@users.noreply.github.com> | 2017-09-16 20:09:44 +0200 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@googlemail.com> | 2017-09-16 19:09:44 +0100 |
commit | 5b8f33a9058b78e2e714ce341107ac52d98dcc5f (patch) | |
tree | 8eb98fe9ce18706e84366b8e2be8185b205924cc /tests | |
parent | 12af4a3f8ac290f5c6f7d208f1a1951a141449ff (diff) | |
download | Nim-5b8f33a9058b78e2e714ce341107ac52d98dcc5f.tar.gz |
Reorder json `add` and `%`, fixes #6385 (#6388)
* Reorder json `add` and `%`, fixes https://github.com/nim-lang/Nim/issues/6385 * rename json test files
Diffstat (limited to 'tests')
-rw-r--r-- | tests/stdlib/mjsonexternproc.nim | 10 | ||||
-rw-r--r-- | tests/stdlib/tjsonexternproc.nim | 5 |
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 |