summary refs log tree commit diff stats
path: root/tests/method/tmethods1.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/method/tmethods1.nim')
-rw-r--r--tests/method/tmethods1.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/method/tmethods1.nim b/tests/method/tmethods1.nim
index 43a260bca..cb4da5ef2 100644
--- a/tests/method/tmethods1.nim
+++ b/tests/method/tmethods1.nim
@@ -2,7 +2,7 @@ discard """
   output: "do nothing"
 """
 
-method somethin(obj: TObject) =
+method somethin(obj: RootObj) {.base.} =
   echo "do nothing"
 
 type
@@ -11,12 +11,12 @@ type
 
   PNodeFoo* = ref object of TNode
 
-  TSomethingElse = object 
+  TSomethingElse = object
   PSomethingElse = ref TSomethingElse
 
-method foo(a: PNode, b: PSomethingElse) = discard
+method foo(a: PNode, b: PSomethingElse) {.base.} = discard
 method foo(a: PNodeFoo, b: PSomethingElse) = discard
 
-var o: TObject
+var o: RootObj
 o.somethin()