NI: Try to solve constraint system with another flexibility from a type variable if couldn't solve

^KT-36254 Fixed
This commit is contained in:
Victor Petukhov
2020-02-06 15:45:20 +03:00
parent b5dd16784a
commit ae39d748e4
10 changed files with 141 additions and 9 deletions
@@ -16476,6 +16476,16 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
runTest("compiler/testData/diagnostics/tests/platformTypes/methodCall/entrySet.kt");
}
@TestMetadata("flexibilityThroughTypeVariable.kt")
public void testFlexibilityThroughTypeVariable() throws Exception {
runTest("compiler/testData/diagnostics/tests/platformTypes/methodCall/flexibilityThroughTypeVariable.kt");
}
@TestMetadata("flexibilityThroughTypeVariableOut.kt")
public void testFlexibilityThroughTypeVariableOut() throws Exception {
runTest("compiler/testData/diagnostics/tests/platformTypes/methodCall/flexibilityThroughTypeVariableOut.kt");
}
@TestMetadata("genericsAndArrays.kt")
public void testGenericsAndArrays() throws Exception {
runTest("compiler/testData/diagnostics/tests/platformTypes/methodCall/genericsAndArrays.kt");