mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-08 14:03:23 +00:00
* fix #17351; switch to c++17 * remove workaround
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user