mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-26 07:49:28 +01:00
Any array is a subtype of eqref
This commit is contained in:
parent
5d2a3805db
commit
c1b0feb0d5
@ -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) ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user