teffects3.nim 310 B

1234567891011121314151617181920
  1. discard """
  2. line: 18
  3. errormsg: "type mismatch"
  4. """
  5. type
  6. TObj = object {.pure, inheritable.}
  7. TObjB = object of TObj
  8. a, b, c: string
  9. fn: proc (): int {.tags: [].}
  10. EIO2 = ref object of EIO
  11. proc raiser(): int {.tags: [TObj, FWriteIO].} =
  12. writeLine stdout, "arg"
  13. var o: TObjB
  14. o.fn = raiser