[FE 1.0] Don't capture projections during compatibility check of supertypes to determine intersection type emptiness

This commit is contained in:
Victor Petukhov
2022-04-27 20:16:29 +03:00
committed by teamcity
parent 73be9d0a20
commit 6c54b78574
7 changed files with 103 additions and 7 deletions
@@ -15223,6 +15223,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/contravariance.kt");
}
@Test
@TestMetadata("covariance.kt")
public void testCovariance() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/emptyIntersectionTypes/covariance.kt");
}
@Test
@TestMetadata("kt45461.kt")
public void testKt45461() throws Exception {