misc/vim: inform the user when no results are found
[nit.git] / tests / test_pretty / test_prop1.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 1
16 class A
17 type FOO: Discrete
18 private var foo: FOO # comment
19 # comment 2
20 var bar: Int = 10
21 end
22
23 class B
24 super A
25
26 redef type FOO: Int
27 # comment 3
28 redef fun foo do return bar # comment
29 redef fun bar
30 do
31 return 10 # comment 4
32 end
33 fun baz do
34 return
35 end # comment 5
36 protected fun baz2 do end
37 fun other: String do return "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
38
39 fun foo1(arr: Array[String], len: Int, ind: Int): String
40 do
41 return "Hello World!"
42 end
43 end
44
45 # end
46