tests: Do not rely on the implicit fixing of type bounds
authorJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Tue, 23 May 2017 16:09:49 +0000 (12:09 -0400)
committerJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Tue, 23 May 2017 16:10:43 +0000 (12:10 -0400)
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

tests/base_ret_covar_int.nit
tests/example_sorter.nit

index 6681b3d..002956f 100644 (file)
@@ -35,7 +35,7 @@ class B
        redef fun bar2: Int do return 33
 
        redef fun baz1 do return 44
-       #alt1#redef fun baz2: Int do return 55
+       #alt1#redef fun baz2 do return 55
 end
 
 fun test_a(a: A[Object])
index ae839ed..7f43b63 100644 (file)
@@ -17,7 +17,7 @@
 
 class BackIntComparator
        super Comparator
-       redef type COMPARED: Int
+       redef type COMPARED: Int is fixed
        redef fun compare(a: Int, b: Int): Int
        do
                return b <=> a
@@ -28,7 +28,7 @@ end
 
 class DecimalComparator
        super Comparator
-       redef type COMPARED: Int
+       redef type COMPARED: Int is fixed
        redef fun compare(a: Int, b: Int): Int
        do
                return (a%10) <=> (b%10)