summary refs log blame commit diff stats
path: root/tests/arc/t16558.nim
blob: 0dbe02b3319c71defa4383e27d0dcb8d190ddca9 (plain) (tree)
1
2
3
4
5
6
7
8
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)