modelize_property: use resolve_mtype_unchecked during build_signature
[nit.git] / tests / test_pretty / test_if2.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 # comment
16 var a = 1# comment
17 # comment
18 var b = 2# comment
19
20 # comment
21 if a == b then a = b# comment
22
23 # comment
24 if a != b then# comment
25 # comment
26 a = b# comment
27 # comment
28 a = b# comment
29 # comment
30 end# comment
31
32 # comment
33 if a > b then# comment
34 # comment
35 b = a# comment
36 # comment
37 a = b# comment
38 # comment
39 else# comment
40 # comment
41 a = b# comment
42 # comment
43 a = b# comment
44 # comment
45 end# comment
46
47 # comment
48 if a < b then# comment
49 # comment
50 a = b# comment
51 # comment
52 a = b# comment
53 # comment
54 else if a == b then# comment
55 # comment
56 b = a# comment
57 # comment
58 a = b# comment
59 # comment
60 end# comment
61
62 # comment
63 if a < b then# comment
64 # comment
65 a = b# comment
66 # comment
67 a = b# comment
68 # comment
69 else if a == b then# comment
70 # comment
71 b = b# comment
72 # comment
73 a = b# comment
74 # comment
75 else# comment
76 # comment
77 a = b# comment
78 # comment
79 a = b# comment
80 # comment
81 end# comment