Skip to content

Commit 41ff225

Browse files
authored
Fix: Return Object as supertype of any array type. (#2442)
1 parent ac9583b commit 41ff225

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/kotlin/platform/mixin/util/AsmDfaUtil.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ object AsmDfaUtil {
146146
if (type == currentClass) {
147147
return currentSuperClass
148148
}
149+
if (type.sort == Type.ARRAY) {
150+
return Type.getType(Any::class.java)
151+
}
149152
val elementFactory = JavaPsiFacade.getElementFactory(project)
150153
val psiType = type.toPsiType(elementFactory) as? PsiClassType ?: return null
151154
val clazz = psiType.resolve() ?: return null

0 commit comments

Comments
 (0)