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.
22 es
[0].output_class_name
24 es
[1].output_class_name
28 class X
[T
:G
[nullable Object],U
]
35 var go
= new G
[Object]
41 var goi
: G
[Object] = new G
[Int]
43 #alt1#goi.foo(1, true)
45 var xgoo
= new X
[G
[Object], Object]
50 #alt2#xgoo.bar(gi, true)
51 #alt3#xgoo.bar(goi, true)
53 var xgoi
= new X
[G
[Object], Int]
57 var gb
: G
[Object] = new G
[Bool]
60 var xgio
= new X
[G
[Int], Object]
62 #alt5#xgio.bar(gi, true)
64 var xgii
= new X
[G
[Int], Object]