mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 06:18:51 +00:00
* fix #18410 * one line comment * typo * typo * cover cpp
This commit is contained in:
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)"
|
||||
Reference in New Issue
Block a user