mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
24 lines
330 B
Nim
24 lines
330 B
Nim
discard """
|
|
errormsg: "type mismatch"
|
|
line: 23
|
|
"""
|
|
|
|
type
|
|
TObj = object {.pure, inheritable.}
|
|
TObjB = object of TObj
|
|
a, b, c: string
|
|
fn: proc (): int {.tags: [ReadIOEffect].}
|
|
|
|
|
|
|
|
proc q() {.tags: [IoEffect].} =
|
|
discard
|
|
|
|
proc raiser(): int =
|
|
writeLine stdout, "arg"
|
|
if true:
|
|
q()
|
|
|
|
var o: TObjB
|
|
o.fn = raiser
|