Can be replaced with binary operator: do not report if it leads to an error/warning after conversion

#KT-25050 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-01-31 17:03:15 +09:00
committed by Yan Zhulanow
parent 81d01a8f8e
commit 43b106fc72
3 changed files with 37 additions and 12 deletions
@@ -3074,6 +3074,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
runTest("idea/testData/inspectionsLocal/conventionNameCalls/replaceCallWithBinaryOperator/notOperatorPlus.kt");
}
@TestMetadata("operatorCannotBeApplied.kt")
public void testOperatorCannotBeApplied() throws Exception {
runTest("idea/testData/inspectionsLocal/conventionNameCalls/replaceCallWithBinaryOperator/operatorCannotBeApplied.kt");
}
@TestMetadata("plusFromJava.kt")
public void testPlusFromJava() throws Exception {
runTest("idea/testData/inspectionsLocal/conventionNameCalls/replaceCallWithBinaryOperator/plusFromJava.kt");