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.
18 type E
: nullable Object
19 var e
: nullable E
= null
49 redef fun foo
do 2.output
54 redef fun foo
do 3.output
55 fun function_never_called
do 300.output
93 var ggb
: GGB = new GGB
103 #alt4#ggb.e = ga.as(GB)
120 #alt5#ggb.e = gc.as(GB)
135 #alt7#ggb.e = ga2.as(GB)
147 # make the funtions live
148 if false then (new C
).function_never_called
149 if false then (new C
).foo