summary refs log blame commit diff stats
path: root/tests/effects/teffects3.nim
blob: bd4e0f7c977d86cfdd54d6d9ac6ad9e2fa7fa966 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                     
 
                          
 
                                                    
                         



             
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, WriteIoEffect].} =
  writeLine stdout, "arg"

var o: TObjB
o.fn = raiser