[NI] Disable caching of LHS expression types for "+=" operators

New behavior was introduced in ab506c1579 which breaks compilation on IDE module (see test example) for new inference.

 Now we temporarily disable this optimisation. This is temporarily restriction which will be fixed once we'll have the same rules for lambdas completion

 #KT-34889 Open
This commit is contained in:
Mikhail Zarechenskiy
2019-11-13 14:03:47 +03:00
parent 4973baae4e
commit 455b9f852d
6 changed files with 36 additions and 2 deletions
@@ -7957,6 +7957,11 @@ public class FirDiagnosticsSmokeTestGenerated extends AbstractFirDiagnosticsSmok
runTest("compiler/testData/diagnostics/tests/functionLiterals/functionLiteralWithoutArgumentList.kt");
}
@TestMetadata("genericFunctionalTypeOnRHSOfPlusAssign.kt")
public void testGenericFunctionalTypeOnRHSOfPlusAssign() throws Exception {
runTest("compiler/testData/diagnostics/tests/functionLiterals/genericFunctionalTypeOnRHSOfPlusAssign.kt");
}
@TestMetadata("higherOrderCallMissingParameters.kt")
public void testHigherOrderCallMissingParameters() throws Exception {
runTest("compiler/testData/diagnostics/tests/functionLiterals/higherOrderCallMissingParameters.kt");