X-Git-Url: http://nitlanguage.org diff --git a/tests/example_sorter.nit b/tests/example_sorter.nit index e82282c..23da9ac 100644 --- a/tests/example_sorter.nit +++ b/tests/example_sorter.nit @@ -16,8 +16,8 @@ class BackIntSorter -special AbstractSorter[Int] - redef meth compare(a: Int, b: Int): Int + super AbstractSorter[Int] + redef fun compare(a: Int, b: Int): Int do return b <=> a end @@ -26,8 +26,8 @@ special AbstractSorter[Int] end class DecimalSorter -special AbstractSorter[Int] - redef meth compare(a: Int, b: Int): Int + super AbstractSorter[Int] + redef fun compare(a: Int, b: Int): Int do return (a%10) <=> (b%10) end @@ -35,7 +35,7 @@ special AbstractSorter[Int] init do end end -meth get_an_array(nb: Int): Array[Int] +fun get_an_array(nb: Int): Array[Int] do var res = new Array[Int].with_capacity(nb) var j = 64