Partial fix for KT-3698: properly write field initializer

This commit is contained in:
Mikhael Bogdanov
2013-06-19 15:27:11 +04:00
parent 935c5ec16d
commit 132d74200b
11 changed files with 154 additions and 12 deletions
@@ -3105,6 +3105,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest("compiler/testData/codegen/box/namespace/namespaceQualifiedMethod.kt");
}
@TestMetadata("nullablePrimitiveNoFieldInitializer.kt")
public void testNullablePrimitiveNoFieldInitializer() throws Exception {
doTest("compiler/testData/codegen/box/namespace/nullablePrimitiveNoFieldInitializer.kt");
}
@TestMetadata("privateTopLevelPropAndVarInInner.kt")
public void testPrivateTopLevelPropAndVarInInner() throws Exception {
doTest("compiler/testData/codegen/box/namespace/privateTopLevelPropAndVarInInner.kt");
@@ -189,6 +189,21 @@ public class CompileJavaAgainstKotlinTestGenerated extends AbstractCompileJavaAg
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/compileJavaAgainstKotlin/staticFields"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("AnnotationClass.kt")
public void testAnnotationClass() throws Exception {
doTest("compiler/testData/compileJavaAgainstKotlin/staticFields/AnnotationClass.kt");
}
@TestMetadata("AnnotationTrait.kt")
public void testAnnotationTrait() throws Exception {
doTest("compiler/testData/compileJavaAgainstKotlin/staticFields/AnnotationTrait.kt");
}
@TestMetadata("kt3698.kt")
public void testKt3698() throws Exception {
doTest("compiler/testData/compileJavaAgainstKotlin/staticFields/kt3698.kt");
}
@TestMetadata("staticClassProperty.kt")
public void testStaticClassProperty() throws Exception {
doTest("compiler/testData/compileJavaAgainstKotlin/staticFields/staticClassProperty.kt");