Don't fail when using Unit class object as a value

#KT-4243 Fixed
This commit is contained in:
Alexander Udalov
2013-12-03 18:02:37 +04:00
parent fa7076a4fa
commit 4ecd1a8f68
3 changed files with 25 additions and 0 deletions
@@ -4565,6 +4565,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);
}
@TestMetadata("unitClassObject.kt")
public void testUnitClassObject() throws Exception {
doTest("compiler/testData/codegen/box/unit/unitClassObject.kt");
}
@TestMetadata("UnitValue.kt")
public void testUnitValue() throws Exception {
doTest("compiler/testData/codegen/box/unit/UnitValue.kt");