18dec643331d374dc53709ce11efd063f0947864
[nit.git] / tests / syntax_annotations2.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 module syntax_annotations2 is
16 annot
17 annot2
18 end
19
20 import kernel is annot
21 import kernel is annot, annot2
22 import kernel is
23 annot
24 annot2
25 end
26
27 class A
28 annot
29 super Toto is annot
30 super Tata is annot, annot2
31 super Titi is
32 annot
33 annot2
34 end
35 fun foo1 is
36 annot
37 do
38 var x: Toto@foo
39 end
40 fun foo2 is annot
41 fun foo3 is annot, annot2
42 fun foo4 is
43 annot
44 annot2
45 end
46 var bar: Int is annot, annot2
47 var bar2: Int is
48 annot
49 annot2
50 end
51 end
52
53 interface Toto
54 end
55 interface Tata
56 end
57 interface Titi
58 end