blob: e2aa440a93da836fa3e2e4c38caf11e8fcbb0bde (
plain) (
tree)
|
|
discard """
line: 23
errormsg: "type mismatch"
"""
type
TObj = object {.pure, inheritable.}
TObjB = object of TObj
a, b, c: string
fn: proc (): int {.tags: [FReadIO].}
EIO2 = ref object of EIO
proc q() {.tags: [FIO].} =
nil
proc raiser(): int =
writeLine stdout, "arg"
if true:
q()
var o: TObjB
o.fn = raiser
|