NI: take into account effective variance during adding constraints from LHS instead of only use site variance

^KT-39220 Fixed
This commit is contained in:
Victor Petukhov
2020-06-01 13:13:03 +03:00
parent 561c6747a6
commit 8d05253369
7 changed files with 315 additions and 8 deletions
@@ -10171,6 +10171,11 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
runTest("compiler/testData/diagnostics/tests/inference/kt37853.kt");
}
@TestMetadata("kt39220.kt")
public void testKt39220() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/kt39220.kt");
}
@TestMetadata("kt6175.kt")
public void testKt6175() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/kt6175.kt");