Test arrays with different dimensions.
()
| 86 | * Test arrays with different dimensions. |
| 87 | */ |
| 88 | @Test |
| 89 | void testSubtypeArray2() { |
| 90 | Type intArray2 = typeSystem.getArrayType(INT, 2); |
| 91 | Type object = typeSystem.getClassType(ClassNames.OBJECT); |
| 92 | Type objectArray = typeSystem.getArrayType(object, 1); |
| 93 | assertTrue(typeSystem.isSubtype(objectArray, intArray2)); |
| 94 | |
| 95 | Type intArray3 = typeSystem.getArrayType(INT, 3); |
| 96 | assertTrue(typeSystem.isSubtype(objectArray, intArray3)); |
| 97 | } |
| 98 | |
| 99 | /** |
| 100 | * Test arrays of different classes with subtyping relation. |
nothing calls this directly
no test coverage detected