Add regression test for KT-3634
#KT-3634 Obsolete
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
val c = Unit.VALUE
|
||||||
|
val d = c
|
||||||
|
|
||||||
|
fun box(): String {
|
||||||
|
c
|
||||||
|
d
|
||||||
|
return "OK"
|
||||||
|
}
|
||||||
@@ -4792,6 +4792,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
|||||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/codegen/box/unit"), Pattern.compile("^(.+)\\.kt$"), true);
|
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/codegen/box/unit"), Pattern.compile("^(.+)\\.kt$"), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt3634.kt")
|
||||||
|
public void testKt3634() throws Exception {
|
||||||
|
doTest("compiler/testData/codegen/box/unit/kt3634.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt4212.kt")
|
@TestMetadata("kt4212.kt")
|
||||||
public void testKt4212() throws Exception {
|
public void testKt4212() throws Exception {
|
||||||
doTest("compiler/testData/codegen/box/unit/kt4212.kt");
|
doTest("compiler/testData/codegen/box/unit/kt4212.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user