Merge: doc: fixed some typos and other misc. corrections
[nit.git] / tests / test_multi_init.nit
1
2 class A
3 var s : String
4 init a( s : String ) do init(s)
5 end
6
7 class B
8 var i : Int
9 init b( i : Int ) do init(i)
10 end
11
12 class C
13 super A
14 super B
15
16 init ( s : String, i : Int )
17 do
18 a(s)
19 b(i)
20 end
21
22 redef fun to_s do return "{s} {i}"
23 end
24
25 var c = new C( "allo", 1234 )
26 print c