Condition of 'if' expression is constant: don't report when condition has named reference
#KT-27651 Fixed
This commit is contained in:
committed by
Yan Zhulanow
parent
bfb5efd490
commit
6ee4b5e393
+5
@@ -2480,6 +2480,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/testData/inspectionsLocal/constantConditionIf"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("constant.kt")
|
||||
public void testConstant() throws Exception {
|
||||
runTest("idea/testData/inspectionsLocal/constantConditionIf/constant.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delete.kt")
|
||||
public void testDelete() throws Exception {
|
||||
runTest("idea/testData/inspectionsLocal/constantConditionIf/delete.kt");
|
||||
|
||||
Reference in New Issue
Block a user