* fix #18410 * one line comment * typo * typo * cover cpp
This commit is contained in:
parent
2bda4a30a6
commit
2f730afe9e
3 changed files with 19 additions and 2 deletions
15
tests/cpp/torc.nim
Normal file
15
tests/cpp/torc.nim
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
discard """
|
||||
targets: "cpp"
|
||||
matrix: "--gc:orc"
|
||||
"""
|
||||
|
||||
import std/options
|
||||
|
||||
# bug #18410
|
||||
type
|
||||
O = object of RootObj
|
||||
val: pointer
|
||||
|
||||
proc p(): Option[O] = none(O)
|
||||
|
||||
doAssert $p() == "none(O)"
|
||||
Loading…
Add table
Add a link
Reference in a new issue