Files
Nim/tests/arc/t16558.nim
konsumlamm 18cea8e9bd Update message for checking cast (#20145)
* Update message for checking `cast`

* Update error messages in tests
2022-09-28 13:59:27 +02:00

10 lines
180 B
Nim

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)