'As' function for constants

This commit is contained in:
Natalia Ukhorskaya
2013-12-17 12:52:18 +04:00
parent b4ad149e77
commit 7a9d822070
9 changed files with 136 additions and 14 deletions
@@ -990,6 +990,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/cast/AsErasedWarning.kt");
}
@TestMetadata("constants.kt")
public void testConstants() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/constants.kt");
}
@TestMetadata("DowncastMap.kt")
public void testDowncastMap() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/DowncastMap.kt");
@@ -728,6 +728,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest("compiler/testData/codegen/box/casts/as.kt");
}
@TestMetadata("asForConstants.kt")
public void testAsForConstants() throws Exception {
doTest("compiler/testData/codegen/box/casts/asForConstants.kt");
}
@TestMetadata("asSafe.kt")
public void testAsSafe() throws Exception {
doTest("compiler/testData/codegen/box/casts/asSafe.kt");
@@ -738,6 +743,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest("compiler/testData/codegen/box/casts/asSafeFail.kt");
}
@TestMetadata("asSafeForConstants.kt")
public void testAsSafeForConstants() throws Exception {
doTest("compiler/testData/codegen/box/casts/asSafeForConstants.kt");
}
@TestMetadata("castGenericNull.kt")
public void testCastGenericNull() throws Exception {
doTest("compiler/testData/codegen/box/casts/castGenericNull.kt");