diff options
author | Araq <rumpf_a@web.de> | 2015-09-06 02:29:30 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-09-06 02:31:28 +0200 |
commit | dc047931bbde432512053c91d0cb9b8a230a7574 (patch) | |
tree | 7a56044ed8db0c741cd5777bb192c7e155617c8e /tests/method/tmultim1.nim | |
parent | d2e4d6ad8235e96191faae376c134e224fafdc11 (diff) | |
download | Nim-dc047931bbde432512053c91d0cb9b8a230a7574.tar.gz |
fixes #2590; methods now require a .base annotation
Diffstat (limited to 'tests/method/tmultim1.nim')
-rw-r--r-- | tests/method/tmultim1.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/method/tmultim1.nim b/tests/method/tmultim1.nim index c7027f4c0..010468a5b 100644 --- a/tests/method/tmultim1.nim +++ b/tests/method/tmultim1.nim @@ -11,7 +11,7 @@ type PlusExpr = ref object of Expression a, b: Expression -method eval(e: Expression): int = quit "to override!" +method eval(e: Expression): int {.base.} = quit "to override!" method eval(e: Literal): int = return e.x method eval(e: PlusExpr): int = return eval(e.a) + eval(e.b) |