mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 18:02:05 +00:00
* fix #18410
* one line comment
* typo
* typo
* cover cpp
(cherry picked from commit 2f730afe9e)
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