* fix #17351; switch to c++17 * remove workaround
This commit is contained in:
parent
be4bd8a0ed
commit
47b59e4d33
3 changed files with 14 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue