pep8analysis: add copyright info for viz.js
[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 writable
24 #alt4#protected var vproA: nullable A protected writable
25 private var vpriA: nullable A
26
27 #alt5#var vpubA2 writable = new A
28 #alt6#protected var vproA2 protected writable = new A
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 writable
39 private var vpriA: nullable A
40
41 var vpubA2 writable = new A
42 private var vpriA2 = new A
43
44 init do end
45 end