fix #9423 followup #17594: distinct generics now work in VM (#21816)

* fix #9423 distinct generics now work in vm

* fixes cpp tests

---------

Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
(cherry picked from commit deaf684375)
This commit is contained in:
ringabout
2023-05-10 17:06:14 +08:00
committed by narimiran
parent 55776451b4
commit 04d0716f37
5 changed files with 40 additions and 19 deletions

View File

@@ -59,8 +59,7 @@ template fn() =
testRoundtrip(pointer(nil)): """0"""
testRoundtrip(cast[pointer](nil)): """0"""
# causes workaround in `fromJson` potentially related to
# https://github.com/nim-lang/Nim/issues/12282
# refs bug #9423
testRoundtrip(Foo(1.5)): """1.5"""
block: # OrderedTable