mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
10 lines
171 B
Nim
10 lines
171 B
Nim
discard """
|
|
errormsg: "conversion from int literal(-1) to Natural is invalid"
|
|
"""
|
|
|
|
type
|
|
Obj = object
|
|
case b: bool
|
|
else: discard
|
|
var o: ref Obj
|
|
unsafeNew(o, -1) |