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













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

type
  PExpr = ref object of RootObj

method eval(e: PExpr): int =
  discard

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