Reorder json add and %, fixes #6385 (#6388)

* Reorder json `add` and `%`, fixes https://github.com/nim-lang/Nim/issues/6385

* rename json test files
This commit is contained in:
Mamy Ratsimbazafy
2017-09-16 20:09:44 +02:00
committed by Dominik Picheta
parent 12af4a3f8a
commit 5b8f33a905
3 changed files with 25 additions and 10 deletions

View File

@@ -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

View File

@@ -0,0 +1,5 @@
# Test case for https://github.com/nim-lang/Nim/issues/6385
import mjsonexternproc
# import json
foo(1)