Considering variances when checking for erased casts.

This commit is contained in:
Evgeny Gerashchenko
2012-11-08 17:22:50 +04:00
parent b3311f717d
commit e691a0bc93
9 changed files with 56 additions and 12 deletions
@@ -713,6 +713,21 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/cast/AsErasedWarning.kt");
}
@TestMetadata("IsErasedAllowFromOut.kt")
public void testIsErasedAllowFromOut() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/IsErasedAllowFromOut.kt");
}
@TestMetadata("IsErasedAllowFromOut2.kt")
public void testIsErasedAllowFromOut2() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/IsErasedAllowFromOut2.kt");
}
@TestMetadata("IsErasedAllowFromOutAtClass.kt")
public void testIsErasedAllowFromOutAtClass() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/IsErasedAllowFromOutAtClass.kt");
}
@TestMetadata("IsErasedAllowParameterSubtype.kt")
public void testIsErasedAllowParameterSubtype() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/IsErasedAllowParameterSubtype.kt");
@@ -728,16 +743,31 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/cast/IsErasedAllowSameParameterParameter.kt");
}
@TestMetadata("IsErasedDisallowDifferentArgInvariantPosition.kt")
public void testIsErasedDisallowDifferentArgInvariantPosition() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/IsErasedDisallowDifferentArgInvariantPosition.kt");
}
@TestMetadata("IsErasedDisallowFromAny.kt")
public void testIsErasedDisallowFromAny() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/IsErasedDisallowFromAny.kt");
}
@TestMetadata("IsErasedDisallowFromIn.kt")
public void testIsErasedDisallowFromIn() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/IsErasedDisallowFromIn.kt");
}
@TestMetadata("IsErasedDisallowFromOut.kt")
public void testIsErasedDisallowFromOut() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/IsErasedDisallowFromOut.kt");
}
@TestMetadata("IsErasedDisallowFromOutAtClass.kt")
public void testIsErasedDisallowFromOutAtClass() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/IsErasedDisallowFromOutAtClass.kt");
}
@TestMetadata("IsErasedStar.kt")
public void testIsErasedStar() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/IsErasedStar.kt");