fix #17351; switch to c++17 and remove hacks (#20407)

* fix #17351; switch to c++17

* remove workaround
This commit is contained in:
ringabout
2022-09-23 17:16:43 +08:00
committed by GitHub
parent be4bd8a0ed
commit 47b59e4d33
3 changed files with 14 additions and 5 deletions

View File

@@ -12,4 +12,14 @@ type
proc p(): Option[O] = none(O)
doAssert $p() == "none(O)"
doAssert $p() == "none(O)"
# bug #17351
type
Foo = object of RootObj
Foo2 = object of Foo
Bar = object
x: Foo2
var b = Bar()
discard b