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.
36 fun test1
(a
: A
[E
, F
], ax
: A
[E
, A
[U
, Int]])
38 __debug__
type E
: self.e
# E -> Object
39 __debug__
type F
: self.f
# F -> Object
40 __debug__
type U
: self.u
# U -> Object
42 __debug__
type E
: a
.e
# E -> Object
43 __debug__
type F
: a
.f
# F -> Object
44 __debug__
type F
: a
.u
# F -> Object
46 __debug__
type A
[U
, Int]: ax
.u
# A[U, Int] -> A[Object, Int]
60 fun test3
(b1
: B
[H
], b2
: B
[W
], w
: W
)
62 __debug__
type Int: self.e
63 __debug__
type U
: self.u
65 __debug__
type H
: b1
.u
67 __debug__
type W
: b2
.u