[Test] Ensure that properties cannot be used as operators

In some cases the combination of property + invoke was incorrectly allowed

^KT-62349
This commit is contained in:
Alejandro Serrano Mena
2023-10-06 10:56:43 +02:00
committed by Space Team
parent a909a28f29
commit 166b99181b
7 changed files with 194 additions and 0 deletions
@@ -24300,6 +24300,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/operatorsOverloading/plusAssignOnVarAndCollections.kt");
}
@Test
@TestMetadata("PropertyInvoke.kt")
public void testPropertyInvoke() throws Exception {
runTest("compiler/testData/diagnostics/tests/operatorsOverloading/PropertyInvoke.kt");
}
@Test
@TestMetadata("unresolvedOperator.kt")
public void testUnresolvedOperator() throws Exception {
@@ -24300,6 +24300,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/operatorsOverloading/plusAssignOnVarAndCollections.kt");
}
@Test
@TestMetadata("PropertyInvoke.kt")
public void testPropertyInvoke() throws Exception {
runTest("compiler/testData/diagnostics/tests/operatorsOverloading/PropertyInvoke.kt");
}
@Test
@TestMetadata("unresolvedOperator.kt")
public void testUnresolvedOperator() throws Exception {