nitlanguage
/
nit.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
lib/mnit_android: inverse importation of app and opengles1
[nit.git]
/
tests
/
test_linex_int.nit
1
redef class
Object
2
fun
foo
do
print
"Object"
3
end
4
5
redef enum
Int
6
redef fun
to_s
7
do
8
var
s
=
"Int"
9
return
"
{s}
<
{super}
"
10
end
11
redef fun
foo
12
do
13
print
"Int"
14
super
15
end
16
end
17
18
# call local::to_s and then standard::to_s
19
print
123
.
to_s
20
21
# call Int::foo and then Object::foo
22
123
.
foo