Fix infinite recursion when using json.to on ref with cycle.
This commit is contained in:
parent
8d61262372
commit
2bb2e6975e
3 changed files with 32 additions and 3 deletions
|
|
@ -354,6 +354,4 @@ when isMainModule:
|
|||
let dataDeser = to(dataParsed, Test)
|
||||
doAssert dataDeser.name == "FooBar"
|
||||
doAssert dataDeser.fallback.kind == JFloat
|
||||
doAssert dataDeser.fallback.getFloat() == 56.42
|
||||
|
||||
# TODO: Cycles lead to infinite loops.
|
||||
doAssert dataDeser.fallback.getFloat() == 56.42
|
||||
Loading…
Add table
Add a link
Reference in a new issue