19440908cd3e909798e63fe497697cc293db4874
[nit.git] / tests / sav / nitpretty_args28.res
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 1
16 class A
17         type FOO: Discrete
18         private var foo: FOO # comment
19
20         # comment 2
21         var bar: Int = 10
22 end
23
24 class B
25         super A
26
27         redef type FOO: Int
28
29         # comment 3
30         redef fun foo do return bar # comment
31
32         redef fun bar
33         do
34                 return 10 # comment 4
35         end
36
37         fun baz do return # comment 5
38         protected fun baz2 do end
39
40         fun other: String do
41                 return "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +
42                         "aaaaaaaaaaaaaaaaaaaaaaaaaa"
43         end
44
45         fun foo1(arr: Array[String], len: Int, ind: Int): String
46         do
47                 return "Hello World!"
48         end
49 end
50
51 # end