Merge: doc: fixed some typos and other misc. corrections
[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 # comment
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 # comment
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
59
60 fun baz1 is
61 end
62 fun baz2 is
63 # comment
64
65 # comment
66 end
67 fun baz3 is
68 # comment
69
70 # doc
71 annot #comment
72
73 # comment
74
75 # comment
76
77 annot2
78 # doc2 bis
79 annot2
80 # comment
81 end