mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
20 lines
310 B
Nim
20 lines
310 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
|
|
|