mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 17:34:43 +00:00
19 lines
288 B
Nim
19 lines
288 B
Nim
discard """
|
|
errormsg: "type mismatch"
|
|
line: 18
|
|
"""
|
|
|
|
type
|
|
TObj {.pure, inheritable.} = object
|
|
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
|