JS/RTTI: fix cast to Any

This commit is contained in:
Alexey Tsvetkov
2015-06-16 22:13:42 +03:00
committed by Alexey Andreev
parent 2b3ebc7e9f
commit 38b0effe15
7 changed files with 58 additions and 7 deletions
@@ -35,6 +35,12 @@ public class CastTestGenerated extends AbstractCastTest {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("js/js.translator/testData/expression/cast/cases"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("castToAny.kt")
public void testCastToAny() throws Exception {
String fileName = JetTestUtils.navigationMetadata("js/js.translator/testData/expression/cast/cases/castToAny.kt");
doTest(fileName);
}
@TestMetadata("castToGenericType.kt")
public void testCastToGenericType() throws Exception {
String fileName = JetTestUtils.navigationMetadata("js/js.translator/testData/expression/cast/cases/castToGenericType.kt");