parent
6dc6ea4146
commit
c2e5faf959
2 changed files with 17 additions and 0 deletions
14
tests/vm/t2574.nim
Normal file
14
tests/vm/t2574.nim
Normal file
|
|
@ -0,0 +1,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
|
||||
Loading…
Add table
Add a link
Reference in a new issue