User: joe Date: 23 Sep 23 18:10 Revision: 7f5b89d30179fe690fa7473cc143f407bf2ab2f0 Summary: Make sure null can be assigned to everything TeamCity URL: https://ci.mcdev.io/viewModification.html?tab=vcsModificationFiles&modId=8752&personal=false Index: src/main/kotlin/platform/mixin/util/Mixin.kt =================================================================== --- src/main/kotlin/platform/mixin/util/Mixin.kt (revision 6ab3c78b668f2b725b48cf68ed49ab4be1db13ce) +++ src/main/kotlin/platform/mixin/util/Mixin.kt (revision 7f5b89d30179fe690fa7473cc143f407bf2ab2f0) @@ -165,6 +165,9 @@ left is PsiArrayType -> right is PsiArrayType && isAssignable(left.componentType, right.componentType) else -> { if (left !is PsiClassType || right !is PsiClassType) { + if (right == PsiType.NULL && left !is PsiPrimitiveType) { + return true + } if (!allowPrimitiveConversion && (left is PsiPrimitiveType || right is PsiPrimitiveType)) { return left == right }