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
7a5d8ab
..
23da9ac
100644
(file)
--- a/
tests/example_sorter.nit
+++ b/
tests/example_sorter.nit
@@
-16,7
+16,7
@@
class BackIntSorter
class BackIntSorter
-special AbstractSorter[Int]
+ super AbstractSorter[Int]
redef fun compare(a: Int, b: Int): Int
do
return b <=> a
redef fun compare(a: Int, b: Int): Int
do
return b <=> a
@@
-26,7
+26,7
@@
special AbstractSorter[Int]
end
class DecimalSorter
end
class DecimalSorter
-special AbstractSorter[Int]
+ super AbstractSorter[Int]
redef fun compare(a: Int, b: Int): Int
do
return (a%10) <=> (b%10)
redef fun compare(a: Int, b: Int): Int
do
return (a%10) <=> (b%10)