Light class codegen: all objects are considered static

Simplify code handling access flag computation
Fix a problem where kotlin nested object wasn't producing a nested light class
This commit is contained in:
Pavel V. Talanov
2017-03-03 16:27:35 +03:00
parent d94da5af40
commit d34b73befb
20 changed files with 114 additions and 52 deletions
@@ -72,6 +72,12 @@ public class CompilerLightClassTestGenerated extends AbstractCompilerLightClassT
doTest(fileName);
}
@TestMetadata("NestedObjects.kt")
public void testNestedObjects() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/NestedObjects.kt");
doTest(fileName);
}
@TestMetadata("compiler/testData/asJava/lightClasses/compilationErrors")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)