diff options
Diffstat (limited to 'tests/stdlib/tjsonmacro_reject2.nim')
-rw-r--r-- | tests/stdlib/tjsonmacro_reject2.nim | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/stdlib/tjsonmacro_reject2.nim b/tests/stdlib/tjsonmacro_reject2.nim deleted file mode 100644 index e13dad307..000000000 --- a/tests/stdlib/tjsonmacro_reject2.nim +++ /dev/null @@ -1,21 +0,0 @@ -discard """ - errormsg: "The `to` macro does not support ref objects with cycles." - file: "tjsonmacro_reject2.nim" - line: 10 -""" -import json - -type - Misdirection = object - cycle: Cycle - - Cycle = ref object - foo: string - cycle: Misdirection - -let data = """ - {"cycle": null} -""" - -let dataParsed = parseJson(data) -let dataDeser = to(dataParsed, Cycle) |