diff options
Diffstat (limited to 'tests/method')
-rw-r--r-- | tests/method/tmethod.nim | 2 | ||||
-rw-r--r-- | tests/method/tmethod_issues.nim (renamed from tests/method/tissues.nim) | 0 | ||||
-rw-r--r-- | tests/method/tmethod_various.nim (renamed from tests/method/tvarious.nim) | 0 | ||||
-rw-r--r-- | tests/method/tmultim.nim | 10 |
4 files changed, 7 insertions, 5 deletions
diff --git a/tests/method/tmethod.nim b/tests/method/tmethod.nim index 0cfe24c70..005294d64 100644 --- a/tests/method/tmethod.nim +++ b/tests/method/tmethod.nim @@ -1,7 +1,7 @@ discard """ + errormsg: "\'method\' needs a parameter that has an object type" file: "tmethod.nim" line: 7 - errormsg: "\'method\' needs a parameter that has an object type" """ method m(i: int): int = diff --git a/tests/method/tissues.nim b/tests/method/tmethod_issues.nim index 80f54caee..80f54caee 100644 --- a/tests/method/tissues.nim +++ b/tests/method/tmethod_issues.nim diff --git a/tests/method/tvarious.nim b/tests/method/tmethod_various.nim index fd022717b..fd022717b 100644 --- a/tests/method/tvarious.nim +++ b/tests/method/tmethod_various.nim diff --git a/tests/method/tmultim.nim b/tests/method/tmultim.nim index 310502c56..7023e18bf 100644 --- a/tests/method/tmultim.nim +++ b/tests/method/tmultim.nim @@ -4,9 +4,12 @@ collide: unit, thing collide: unit, thing collide: thing, unit collide: thing, thing -collide: unit, thing | collide: unit, thing | collide: thing, unit | +collide: unit, thing | +collide: unit, thing | +collide: thing, unit | do nothing ''' + joinable: false """ @@ -55,10 +58,10 @@ method collide(a, b: Thing) {.base, inline.} = quit "to override!" method collide[T](a: Thing, b: Unit[T]) {.inline.} = - write stdout, "collide: thing, unit | " + echo "collide: thing, unit |" method collide[T](a: Unit[T], b: Thing) {.inline.} = - write stdout, "collide: unit, thing | " + echo "collide: unit, thing |" proc test(a, b: Thing) {.inline.} = collide(a, b) @@ -69,7 +72,6 @@ var collide(bbb, Thing(ccc)) test(bbb, ccc) collide(aaa, bbb) -echo "" |