User: joe Date: 26 Nov 25 18:40 Revision: ce5002cbae81fb2629c0a26670c7022551931b8a Summary: Fix local class in mixin detection TeamCity URL: http://ci.mcdev.io:80/viewModification.html?tab=vcsModificationFiles&modId=10322&personal=false Index: src/main/kotlin/platform/mixin/inspection/MixinInnerClassInspection.kt =================================================================== --- src/main/kotlin/platform/mixin/inspection/MixinInnerClassInspection.kt (revision 6ce16eb56b1a31bdcf903c9a3b1bf4c671f1fa36) +++ src/main/kotlin/platform/mixin/inspection/MixinInnerClassInspection.kt (revision ce5002cbae81fb2629c0a26670c7022551931b8a) @@ -41,7 +41,7 @@ private class Visitor(private val holder: ProblemsHolder) : JavaElementVisitor() { override fun visitClass(psiClass: PsiClass) { - if (psiClass.containingClass == null && PsiUtil.isLocalClass(psiClass) && psiClass.findContainingClass()?.isMixin == true) { + if (psiClass.containingClass == null && PsiUtil.isLocalClass(psiClass) && psiClass.parentOfType()?.isMixin == true) { holder.registerProblem( psiClass.nameIdentifier ?: psiClass, "Local classes are not allowed inside mixins"