Merge remote-tracking branch 'upstream/master' into init_auto
[nit.git] / tests / example_sorter.nit
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)