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






                                     
 
 
 
                                                    
                         


             
discard """
  errormsg: "type mismatch"
  line: 18
"""

type
  TObj = object {.pure, inheritable.}
  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