Files
Nim/tests/effects/teffects3.nim
2015-06-19 01:34:34 -05:00

20 lines
314 B
Nim

discard """
line: 18
errormsg: "type mismatch"
"""
type
TObj = object {.pure, inheritable.}
TObjB = object of TObj
a, b, c: string
fn: proc (): int {.tags: [].}
EIO2 = ref object of EIO
proc raiser(): int {.tags: [TObj, FWriteIO].} =
writeLine stdout, "arg"
var o: TObjB
o.fn = raiser