jvm/test/TestMultiArray.java
Zack Buhman ab75598043 remove class_resolver_memoize_string_type
This was a decent idea, but it is not flexible enough to allow for correct
superclass type comparisons.
2025-01-06 22:29:32 -06:00

21 lines
533 B
Java

package test;
class TestMultiArray {
static boolean testInstanceof() {
Object[][] a = new Object[2][3];
return a instanceof Object[][];
}
static boolean testInstanceof2() {
TestMultiArray[][] a = new TestMultiArray[2][3];
return a instanceof Object[][];
}
public static void main() {
System.out.print("testInstanceof: ");
System.out.println(testInstanceof());
System.out.print("testInstanceof2: ");
System.out.println(testInstanceof2());
}
}