Files
Nim/tests/effects/teffects3.nim
2018-12-11 21:23:21 +01:00

19 lines
288 B
Nim

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