[NI] Fix extracting type variables for flexible types in in captured types

Bug was introduced in b99efb because of lack of tests.
All code in `AbstractTypeCheckerContextForConstraintSystem.extractTypeVariableForSubtype`
  related to IN projection looks suspicious and needs further investigation
This commit is contained in:
Dmitriy Novozhilov
2019-08-01 10:54:11 +03:00
parent 71a1a0e2f5
commit b6a7d21579
6 changed files with 44 additions and 1 deletions
@@ -9548,6 +9548,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
runTest("compiler/testData/diagnostics/tests/inference/cannotCompleteResolveWithFunctionLiterals.kt");
}
@TestMetadata("capturedInProjectedFlexibleType.kt")
public void testCapturedInProjectedFlexibleType() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/capturedInProjectedFlexibleType.kt");
}
@TestMetadata("coerceFunctionLiteralToSuspend.kt")
public void testCoerceFunctionLiteralToSuspend() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/coerceFunctionLiteralToSuspend.kt");