[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:
committed by
Space Team
parent
a909a28f29
commit
166b99181b
+6
@@ -24300,6 +24300,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
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 {
|
||||
|
||||
+6
@@ -24306,6 +24306,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user