From dc047931bbde432512053c91d0cb9b8a230a7574 Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 6 Sep 2015 02:29:30 +0200 Subject: fixes #2590; methods now require a .base annotation --- tests/method/tmultim1.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/method/tmultim1.nim') 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) -- cgit 1.4.1-2-gfad0