Report resolution ambiguity on '+=' by taking into account full resolution result including post type checking for '+'

^KT-45503 Fixed
This commit is contained in:
Victor Petukhov
2021-03-26 20:25:01 +03:00
parent 1da35029a6
commit 5d78b0a962
42 changed files with 279 additions and 354 deletions
@@ -19429,6 +19429,24 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
runTest("compiler/testData/diagnostics/tests/operatorsOverloading/kt3450.kt");
}
@Test
@TestMetadata("kt45503_1.kt")
public void testKt45503_1() throws Exception {
runTest("compiler/testData/diagnostics/tests/operatorsOverloading/kt45503_1.kt");
}
@Test
@TestMetadata("kt45503_2.kt")
public void testKt45503_2() throws Exception {
runTest("compiler/testData/diagnostics/tests/operatorsOverloading/kt45503_2.kt");
}
@Test
@TestMetadata("kt45503_3.kt")
public void testKt45503_3() throws Exception {
runTest("compiler/testData/diagnostics/tests/operatorsOverloading/kt45503_3.kt");
}
@Test
@TestMetadata("plusAssignOnArray.kt")
public void testPlusAssignOnArray() throws Exception {
@@ -19446,6 +19464,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
public void testPlusAssignOnProperty() throws Exception {
runTest("compiler/testData/diagnostics/tests/operatorsOverloading/plusAssignOnProperty.kt");
}
@Test
@TestMetadata("plusAssignOnVarAndCollections.kt")
public void testPlusAssignOnVarAndCollections() throws Exception {
runTest("compiler/testData/diagnostics/tests/operatorsOverloading/plusAssignOnVarAndCollections.kt");
}
}
@Nested