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.
46 # In order to check type relations, this test looks for the warnings about useless cast
47 # The following should produce a warning
64 assert vge
isa G
[Object]
70 assert vvge
isa G
[Object]
71 assert vvge
isa Object
76 assert vgve
isa G
[Object]
77 assert vgve
isa Object
79 assert vgvve
isa VGVVE
80 assert vgvve
isa G
[VVE]
81 assert vgvve
isa G
[VE]
83 assert vgvve
isa G
[Object]
84 assert vgvve
isa Object
86 # The following should not
94 assert o
isa G
[Object]
106 assert e
isa G
[Object]
117 assert ve
isa G
[Object]
121 assert vve
isa G
[VVE]
127 assert vve
isa G
[Object]
130 assert vge
isa G
[VVE]
138 assert vvge
isa VGVVE
139 assert vvge
isa G
[VVE]
141 assert vvge
isa G
[VE]
146 assert vgve
isa VGVVE
147 assert vgve
isa G
[VVE]
155 assert vgvve
isa VVGE
156 assert vgvve
isa VGVE