Merge: tests: Test result update for `curl_http`
[nit.git] / tests / sav / nitpretty_args7.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         redef type FOO: Int
27
28         # comment 3
29         redef fun foo do return bar # comment
30
31         redef fun bar
32         do
33                 return 10 # comment 4
34         end
35
36         fun baz do return # comment 5
37         protected fun baz2 do end
38
39         fun other: String do
40                 return "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
41         end
42
43         fun foo1(arr: Array[String], len: Int, ind: Int): String
44         do
45                 return "Hello World!"
46         end
47 end
48
49 # end