Not building light class for local class (to fix exception in tests).
This commit is contained in:
+5
@@ -66,6 +66,11 @@ public class KotlinLightClassForExplicitDeclaration extends AbstractLightClass i
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO temporary not building light classes for local classes: e.g., they won't be visible in hierarchy
|
||||||
|
if (JetPsiUtil.getOutermostClassOrObject(classOrObject) == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
String jvmInternalName = PsiCodegenPredictor.getPredefinedJvmInternalName(classOrObject);
|
String jvmInternalName = PsiCodegenPredictor.getPredefinedJvmInternalName(classOrObject);
|
||||||
if (jvmInternalName == null) return null;
|
if (jvmInternalName == null) return null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user