mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 06:20:38 +00:00
* Reorder json `add` and `%`, fixes https://github.com/nim-lang/Nim/issues/6385 * rename json test files
This commit is contained in:
committed by
Dominik Picheta
parent
12af4a3f8a
commit
5b8f33a905
10
tests/stdlib/mjsonexternproc.nim
Normal file
10
tests/stdlib/mjsonexternproc.nim
Normal 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
|
||||
5
tests/stdlib/tjsonexternproc.nim
Normal file
5
tests/stdlib/tjsonexternproc.nim
Normal file
@@ -0,0 +1,5 @@
|
||||
# Test case for https://github.com/nim-lang/Nim/issues/6385
|
||||
|
||||
import mjsonexternproc
|
||||
# import json
|
||||
foo(1)
|
||||
Reference in New Issue
Block a user