diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2022-09-23 17:16:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-23 11:16:43 +0200 |
commit | 47b59e4d3315dbcb0b17d305f43cc35e4eb89e51 (patch) | |
tree | ef189fb8141b8269cccfaba5905281a3c17c21ef /tests | |
parent | be4bd8a0edd527b24679372b8cb9d2afa548056d (diff) | |
download | Nim-47b59e4d3315dbcb0b17d305f43cc35e4eb89e51.tar.gz |
fix #17351; switch to c++17 and remove hacks (#20407)
* fix #17351; switch to c++17 * remove workaround
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cpp/torc.nim | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/cpp/torc.nim b/tests/cpp/torc.nim index 7fc474f94..636105f31 100644 --- a/tests/cpp/torc.nim +++ b/tests/cpp/torc.nim @@ -12,4 +12,14 @@ type proc p(): Option[O] = none(O) -doAssert $p() == "none(O)" \ No newline at end of file +doAssert $p() == "none(O)" + +# bug #17351 +type + Foo = object of RootObj + Foo2 = object of Foo + Bar = object + x: Foo2 + +var b = Bar() +discard b |