UnnecessaryVariableInspection: don't report for overriding property

#KT-39263 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-06-09 23:31:03 +09:00
committed by Ilya Kirillov
parent c29dbee65e
commit 122bba9102
3 changed files with 24 additions and 0 deletions
@@ -13680,6 +13680,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
runTest("idea/testData/inspectionsLocal/unnecessaryVariable/it.kt");
}
@TestMetadata("override.kt")
public void testOverride() throws Exception {
runTest("idea/testData/inspectionsLocal/unnecessaryVariable/override.kt");
}
@TestMetadata("paramCopy.kt")
public void testParamCopy() throws Exception {
runTest("idea/testData/inspectionsLocal/unnecessaryVariable/paramCopy.kt");