Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
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])
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
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)