Redundant override inspection: don't report for ambiguous derivation
#KT-24405 Fixed #KT-25883 Fixed
This commit is contained in:
+20
@@ -4027,6 +4027,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("abstractClassAndInterface.kt")
|
||||
public void testAbstractClassAndInterface() throws Exception {
|
||||
runTest("idea/testData/inspectionsLocal/redundantOverride/abstractClassAndInterface.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInRedundantOverride() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/inspectionsLocal/redundantOverride"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true);
|
||||
}
|
||||
@@ -4051,11 +4056,21 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
|
||||
runTest("idea/testData/inspectionsLocal/redundantOverride/basic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boxedParameters.kt")
|
||||
public void testBoxedParameters() throws Exception {
|
||||
runTest("idea/testData/inspectionsLocal/redundantOverride/boxedParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("callDifferentSuperMethod.kt")
|
||||
public void testCallDifferentSuperMethod() throws Exception {
|
||||
runTest("idea/testData/inspectionsLocal/redundantOverride/callDifferentSuperMethod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classAndInterface.kt")
|
||||
public void testClassAndInterface() throws Exception {
|
||||
runTest("idea/testData/inspectionsLocal/redundantOverride/classAndInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dataClass.kt")
|
||||
public void testDataClass() throws Exception {
|
||||
runTest("idea/testData/inspectionsLocal/redundantOverride/dataClass.kt");
|
||||
@@ -4101,6 +4116,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
|
||||
runTest("idea/testData/inspectionsLocal/redundantOverride/singleExpressionFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("twoInterfaces.kt")
|
||||
public void testTwoInterfaces() throws Exception {
|
||||
runTest("idea/testData/inspectionsLocal/redundantOverride/twoInterfaces.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("useGenericsSuper.kt")
|
||||
public void testUseGenericsSuper() throws Exception {
|
||||
runTest("idea/testData/inspectionsLocal/redundantOverride/useGenericsSuper.kt");
|
||||
|
||||
Reference in New Issue
Block a user