Merge: doc: fixed some typos and other misc. corrections
[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 core::to_s
19 print 123.to_s
20
21 # call Int::foo and then Object::foo
22 123.foo