parent
1ccf1b89c2
commit
2cfd58de48
1 changed files with 4 additions and 4 deletions
|
|
@ -3696,7 +3696,7 @@ type.
|
||||||
|
|
||||||
method eval(e: Expression): int {.base.} =
|
method eval(e: Expression): int {.base.} =
|
||||||
# override this base method
|
# override this base method
|
||||||
quit "to override!"
|
raise newException(CatchableError, "Method without implementation override")
|
||||||
|
|
||||||
method eval(e: Literal): int = return e.x
|
method eval(e: Literal): int = return e.x
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue