JS/RTTI: fixed cast to generic type parameter with upper bound different than Any

This commit is contained in:
Alexey Tsvetkov
2015-06-24 17:15:23 +03:00
committed by Alexey Andreev
parent d42cbde74d
commit cd60a8d207
6 changed files with 100 additions and 9 deletions
@@ -53,6 +53,12 @@ public class CastTestGenerated extends AbstractCastTest {
doTest(fileName);
}
@TestMetadata("castToGenericTypeWithUpperBound.kt")
public void testCastToGenericTypeWithUpperBound() throws Exception {
String fileName = JetTestUtils.navigationMetadata("js/js.translator/testData/expression/cast/cases/castToGenericTypeWithUpperBound.kt");
doTest(fileName);
}
@TestMetadata("castToNotNull.kt")
public void testCastToNotNull() throws Exception {
String fileName = JetTestUtils.navigationMetadata("js/js.translator/testData/expression/cast/cases/castToNotNull.kt");
@@ -77,6 +83,12 @@ public class CastTestGenerated extends AbstractCastTest {
doTest(fileName);
}
@TestMetadata("safeCastToGenericTypeWithUpperBound.kt")
public void testSafeCastToGenericTypeWithUpperBound() throws Exception {
String fileName = JetTestUtils.navigationMetadata("js/js.translator/testData/expression/cast/cases/safeCastToGenericTypeWithUpperBound.kt");
doTest(fileName);
}
@TestMetadata("safeCastToNotNull.kt")
public void testSafeCastToNotNull() throws Exception {
String fileName = JetTestUtils.navigationMetadata("js/js.translator/testData/expression/cast/cases/safeCastToNotNull.kt");