Nim/tests/typerel/tregionptrs.nim
Adam Strzelecki e80465dacf tests: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:04:32 +02:00

16 lines
230 B
Nim

discard """
line: 16
errormsg: "type mismatch: got (BPtr) but expected 'APtr'"
"""
type
RegionA = object
APtr = RegionA ptr int
RegionB = object
BPtr = RegionB ptr int
var x,xx: APtr
var y: BPtr
x = nil
x = xx
x = y