summary refs log tree commit diff stats
path: root/tests/ccgbugs/tmissingbracket.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ccgbugs/tmissingbracket.nim')
-rw-r--r--tests/ccgbugs/tmissingbracket.nim9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/ccgbugs/tmissingbracket.nim b/tests/ccgbugs/tmissingbracket.nim
index 886884d0c..468e13366 100644
--- a/tests/ccgbugs/tmissingbracket.nim
+++ b/tests/ccgbugs/tmissingbracket.nim
@@ -1,6 +1,8 @@
 discard """
-  output: '''Subobject test called
-5'''
+output: '''
+Subobject test called
+5
+'''
 """
 
 type
@@ -38,7 +40,7 @@ type
         t:int
     SubObject* = object of TestObj
 
-method test*(t:var TestObj) =
+method test*(t:var TestObj) {.base.} =
     echo "test called"
 
 method test*(t:var SubObject) =
@@ -49,4 +51,3 @@ var a: SubObject
 
 a.test()
 echo a.t
-