Prohibit operator mod as declaration and calls that resolved via it

#KT-24197 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2018-06-28 03:04:13 +03:00
parent c887b88ed9
commit 2e88f5c47d
16 changed files with 149 additions and 8 deletions
@@ -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");
@@ -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");