nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update NOTICE and LICENSE
[nit.git]
/
tests
/
example_sorter.nit
diff --git
a/tests/example_sorter.nit
b/tests/example_sorter.nit
index
e82282c
..
23da9ac
100644
(file)
--- a/
tests/example_sorter.nit
+++ b/
tests/example_sorter.nit
@@
-16,8
+16,8
@@
class BackIntSorter
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
do
return b <=> a
end
@@
-26,8
+26,8
@@
special AbstractSorter[Int]
end
class DecimalSorter
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
do
return (a%10) <=> (b%10)
end
@@
-35,7
+35,7
@@
special AbstractSorter[Int]
init do end
end
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
do
var res = new Array[Int].with_capacity(nb)
var j = 64