Any array is a subtype of eqref

This commit is contained in:
Volker Berlin 2021-05-02 13:56:36 +02:00
parent 5d2a3805db
commit c1b0feb0d5

View File

@ -167,7 +167,7 @@ public class ArrayType extends StructType {
*/ */
@Override @Override
public boolean isSubTypeOf( AnyType type ) { public boolean isSubTypeOf( AnyType type ) {
if( type == this || type == ValueType.externref ) { if( type == this || type == ValueType.externref || type == ValueType.anyref || type == ValueType.eqref ) {
return true; return true;
} }
if( !(type instanceof StructType) ) { if( !(type instanceof StructType) ) {