[FIR] Use isSubtypeOfClass with platform types mapping instead of isSubtypeOf during checking CAST_NEVER_SUCCEEDS
Refactor and generalize code ^KT-62783 Fixed
This commit is contained in:
committed by
Space Team
parent
0935e2b270
commit
3b9095a5ab
+6
@@ -5790,6 +5790,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
public void testNoGenericsUnrelated() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/cast/neverSucceeds/NoGenericsUnrelated.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("NullableExprToItsNonNullableGenericBaseClass.kt")
|
||||
public void testNullableExprToItsNonNullableGenericBaseClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/cast/neverSucceeds/NullableExprToItsNonNullableGenericBaseClass.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+6
@@ -5790,6 +5790,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
public void testNoGenericsUnrelated() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/cast/neverSucceeds/NoGenericsUnrelated.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("NullableExprToItsNonNullableGenericBaseClass.kt")
|
||||
public void testNullableExprToItsNonNullableGenericBaseClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/cast/neverSucceeds/NullableExprToItsNonNullableGenericBaseClass.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user