Fixed the case of "Any is/as List<*>" for erased cast diagnostic

This commit is contained in:
Andrey Breslav
2013-09-06 12:26:03 +04:00
parent 4cf5b94a4a
commit fca6182288
5 changed files with 45 additions and 13 deletions
@@ -1060,6 +1060,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/cast/IsErasedAllowSameParameterParameter.kt");
}
@TestMetadata("isErasedAnyAndStarred.kt")
public void testIsErasedAnyAndStarred() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/isErasedAnyAndStarred.kt");
}
@TestMetadata("IsErasedDisallowDifferentArgInvariantPosition.kt")
public void testIsErasedDisallowDifferentArgInvariantPosition() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/IsErasedDisallowDifferentArgInvariantPosition.kt");
@@ -1120,6 +1125,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/cast/IsErasedStar.kt");
}
@TestMetadata("isErasedTAndStarred.kt")
public void testIsErasedTAndStarred() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/isErasedTAndStarred.kt");
}
@TestMetadata("IsErasedTasT.kt")
public void testIsErasedTasT() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/IsErasedTasT.kt");
@@ -1130,6 +1140,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/cast/IsErasedToErrorType.kt");
}
@TestMetadata("isErasedUnrelatedAndStarred.kt")
public void testIsErasedUnrelatedAndStarred() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/isErasedUnrelatedAndStarred.kt");
}
@TestMetadata("IsRecursionSustainable.kt")
public void testIsRecursionSustainable() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/IsRecursionSustainable.kt");