summary refs log blame commit diff stats
path: root/tests/vm/t2574.nim
blob: 4332667b43e26f00f93e3574383eacb6b3ae393f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
           
                                                     
          










                               
discard """
  errormsg: "cannot call method eval at compile time"
  line: 14
"""

type
  PExpr = ref object of RootObj

method eval(e: PExpr): int =
  discard

static:
  let x = PExpr()
  discard x.eval