Don't lose upper non-expected type constraints to include them to intersection type during finding the result type of the fixing type variable

This commit is contained in:
Victor Petukhov
2021-03-11 12:50:42 +03:00
parent b87c2a15b5
commit 91d2f32a57
9 changed files with 72 additions and 8 deletions
@@ -28833,6 +28833,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
runTest("compiler/testData/diagnostics/tests/typeParameters/dontIntersectUpperBoundWithExpectedType.kt");
}
@Test
@TestMetadata("dontLoseUpperNonExpectedTypeConstraints.kt")
public void testDontLoseUpperNonExpectedTypeConstraints() throws Exception {
runTest("compiler/testData/diagnostics/tests/typeParameters/dontLoseUpperNonExpectedTypeConstraints.kt");
}
@Test
@TestMetadata("extFunctionTypeAsUpperBound.kt")
public void testExtFunctionTypeAsUpperBound() throws Exception {