Merge: doc: fixed some typos and other misc. corrections
[nit.git] / tests / base_prot_sig2.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 import kernel
16 private import base_prot_sig
17
18 class C
19 #alt1#fun pubA(a: A) do end
20 #alt2#protected fun proA(a: A) do end
21 private fun priA(a: A) do end
22
23 #alt3#var vpubA: nullable A is writable, noinit
24 #alt4#protected var vproA: nullable A is protected writable, noinit
25 private var vpriA: nullable A is noinit
26
27 #alt5#var vpubA2 = new A is writable
28 #alt6#protected var vproA2 = new A is protected writable
29 private var vpriA2 = new A
30
31 init do end
32 end
33
34 private class D
35 fun pubA(a: A) do end
36 private fun priA(a: A) do end
37
38 var vpubA: nullable A is writable, noinit
39 private var vpriA: nullable A is noinit
40
41 var vpubA2 = new A is writable
42 private var vpriA2 = new A
43
44 init do end
45 end