Merge: doc: fixed some typos and other misc. corrections
[nit.git] / tests / base_types_formal_and_virtual3.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 end
16
17 class A
18 end
19
20 class G[T: A]
21 type U: A
22
23 var at: T
24 var au: U
25
26 fun test(t: T, u: U)
27 do
28 __debug__ type T: t
29 __debug__ type U: u
30
31 __debug__ type T: at
32 __debug__ type U: au
33 end
34 end
35
36 interface Object
37 end