Files
Nim/tests/effects/teffects3.nim
2018-07-05 19:14:18 +02:00

20 lines
289 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: [].}
proc raiser(): int {.tags: [TObj, WriteIoEffect].} =
writeLine stdout, "arg"
var o: TObjB
o.fn = raiser