1 # This file is part of NIT ( http://www.nitlanguage.org ).
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 private import base_prot_sig
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
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
27 #alt5#var vpubA2 = new A is writable
28 #alt6#protected var vproA2 = new A is protected writable
29 private var vpriA2
= new A
36 private fun priA
(a
: A
) do end
38 var vpubA
: nullable A
is writable, noinit
39 private var vpriA
: nullable A
is noinit
41 var vpubA2
= new A
is writable
42 private var vpriA2
= new A