parent
f915b3aa86
commit
677969f6ea
2 changed files with 11 additions and 0 deletions
9
tests/arc/t16558.nim
Normal file
9
tests/arc/t16558.nim
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
discard """
|
||||
matrix: "--gc:arc"
|
||||
errormsg: "expression cannot be cast to int"
|
||||
"""
|
||||
|
||||
block: # bug #16558
|
||||
var value = "hi there"
|
||||
var keepInt: int
|
||||
keepInt = cast[int](value)
|
||||
Loading…
Add table
Add a link
Reference in a new issue