Kotlin does not support static nested classes so far
This commit is contained in:
+4
-6
@@ -305,12 +305,10 @@ public class KotlinLightClassForExplicitDeclaration extends AbstractLightClass i
|
|||||||
psiModifiers.add(PsiModifier.FINAL);
|
psiModifiers.add(PsiModifier.FINAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
// STATIC
|
// TODO: STATIC
|
||||||
if (nestedClass
|
//if (nestedClass && jetModifierList.hasModifier(INNER_KEYWORD)) {
|
||||||
//TODO: && !jetModifierList.hasModifier(INNER_KEYWORD)
|
// psiModifiers.add(PsiModifier.STATIC);
|
||||||
) {
|
//}
|
||||||
psiModifiers.add(PsiModifier.STATIC);
|
|
||||||
}
|
|
||||||
|
|
||||||
return psiModifiers.toArray(new String[psiModifiers.size()]);
|
return psiModifiers.toArray(new String[psiModifiers.size()]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ public abstract class KotlinLightClassTest extends KotlinAsJavaTestBase {
|
|||||||
public void testEnum() {
|
public void testEnum() {
|
||||||
checkModifiers("test.Enum", PUBLIC, FINAL, ENUM);
|
checkModifiers("test.Enum", PUBLIC, FINAL, ENUM);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testTrait() {
|
public void testTrait() {
|
||||||
checkModifiers("test.Trait", PUBLIC, ABSTRACT, INTERFACE);
|
checkModifiers("test.Trait", PUBLIC, ABSTRACT, INTERFACE);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user