Not building light class for local class (to fix exception in tests).

This commit is contained in:
Evgeny Gerashchenko
2013-10-04 19:34:55 +04:00
parent 8070f62764
commit a1e4ca2871
@@ -66,6 +66,11 @@ public class KotlinLightClassForExplicitDeclaration extends AbstractLightClass i
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);
if (jvmInternalName == null) return null;