Prohibit operator mod as declaration and calls that resolved via it
#KT-24197 Fixed
This commit is contained in:
@@ -13813,6 +13813,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/doNotResolveToInapplicableRem.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forbiddenModOperatorConvention.kt")
|
||||
public void testForbiddenModOperatorConvention() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/forbiddenModOperatorConvention.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("modWithRemAssign.kt")
|
||||
public void testModWithRemAssign() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/modWithRemAssign.kt");
|
||||
|
||||
Generated
+5
@@ -13813,6 +13813,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/doNotResolveToInapplicableRem.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forbiddenModOperatorConvention.kt")
|
||||
public void testForbiddenModOperatorConvention() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/forbiddenModOperatorConvention.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("modWithRemAssign.kt")
|
||||
public void testModWithRemAssign() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/modWithRemAssign.kt");
|
||||
|
||||
Reference in New Issue
Block a user