Merge: doc: fixed some typos and other misc. corrections
[nit.git] / tests / error_prop_name.nit
1 # This file is part of NIT ( http://www.nitlanguage.org ).
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 import error_prop_name_m1
16 import error_prop_name_m2
17
18 class C
19 fun bar do 4.output
20 fun bar_c do bar
21 end
22
23 redef class A
24 super B
25 super C
26
27 #alt3#redef fun foo do 5.output
28 #alt4#redef fun bar do 6.output
29 end
30
31 var a = new A
32 a.foo_a
33 a.foo_b
34 #alt1#a.foo
35 a.bar_a
36 a.bar_c
37 #alt2#a.bar