update NOTICE and LICENSE
[nit.git] / tests / base_super_linext_raf.nit
1 # This file is part of NIT ( http://www.nitlanguage.org ).
2 #
3 # Copyright 2008 Jean Privat <jean@pryen.org>
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16
17 import base_super_linext
18
19 redef class A
20 redef fun foo
21 do
22 'a'.output
23 '['.output
24 super
25 ']'.output
26 end
27 redef fun bar
28 do
29 super.output
30 return 'a'
31 end
32 end
33
34 redef class B
35 redef fun foo
36 do
37 'b'.output
38 '['.output
39 super
40 ']'.output
41 end
42 redef fun bar
43 do
44 super.output
45 return 'b'
46 end
47 end
48
49 redef class C
50 redef fun foo
51 do
52 'c'.output
53 '['.output
54 super
55 ']'.output
56 end
57 redef fun bar
58 do
59 super.output
60 return 'c'
61 end
62 end
63
64 redef class D
65 redef fun foo
66 do
67 'd'.output
68 '['.output
69 super
70 ']'.output
71 end
72 redef fun bar
73 do
74 super.output
75 return 'd'
76 end
77 end