Convert to range check: don't report it if recursive call will be created

#KT-39182 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-06-10 18:01:28 +09:00
committed by Yan Zhulanow
parent 03e725d5da
commit 731848849e
3 changed files with 52 additions and 10 deletions
@@ -3871,6 +3871,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
runTest("idea/testData/inspectionsLocal/convertTwoComparisonsToRangeCheck/nonConstants.kt");
}
@TestMetadata("recursiveCall.kt")
public void testRecursiveCall() throws Exception {
runTest("idea/testData/inspectionsLocal/convertTwoComparisonsToRangeCheck/recursiveCall.kt");
}
@TestMetadata("until.kt")
public void testUntil() throws Exception {
runTest("idea/testData/inspectionsLocal/convertTwoComparisonsToRangeCheck/until.kt");