Merge: doc: fixed some typos and other misc. corrections
[nit.git] / tests / base_error_class_kind.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 end
16
17 interface Object
18 end
19
20 extern class Pointer
21 end
22
23 ##
24
25 interface IC
26 end
27
28 abstract class AC
29 end
30
31 class CC
32 end
33
34 enum EnC
35 end
36
37 extern class ExC
38 end
39
40 subset SSet
41 end
42
43 ##
44
45 interface SubI
46 super IC
47 #alt1# super AC
48 #alt2# super CC
49 #alt3# super EnC
50 #alt4# super ExC
51 #alt16# super SSet
52 end
53
54 abstract class SubA
55 super IC
56 super AC
57 super CC
58 #alt5# super EnC
59 #alt6# super ExC
60 #alt17# super SSet
61 end
62
63 class SubC
64 super IC
65 super AC
66 super CC
67 #alt7# super EnC
68 #alt8# super ExC
69 #alt18# super SSet
70 end
71
72 enum SubEn
73 super IC
74 #alt9# super AC
75 #alt10# super CC
76 #alt11# super EnC
77 #alt12# super ExC
78 #alt19# super SSet
79 end
80
81 extern class SubEx
82 super IC
83 #alt13# super AC
84 #alt14# super CC
85 #alt15# super EnC
86 super ExC
87 #alt20# super SSet
88 end
89
90 # A subset can inherit anything except a subset, and has only one direct parent.
91
92 subset SSetI
93 super IC
94 # TODO: super AC
95 # TODO: super CC
96 # TODO: super EnC
97 # TODO: super ExC
98 # TODO: super SSet
99 end
100
101 subset SSetA
102 super AC
103 end
104
105 subset SSetC
106 super CC
107 end
108
109 subset SSetEn
110 super EnC
111 end
112
113 subset SSetEx
114 super ExC
115 end
116
117 #alt26# subset SubSSet
118 #alt26# super SSet
119 #alt26# end