method hierarchy: don't merge methods with return types which are not substitutable (IDEA-57393)

This commit is contained in:
Anna Kozlova
2015-12-14 10:30:48 +01:00
parent 13fac3d5e2
commit 8edd7a4cf5
4 changed files with 78 additions and 2 deletions
@@ -573,4 +573,8 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase {
configureFromFileText("Collections.java", StringUtil.convertLineSeparators(StringUtil.replace(text, "package java.util;", "package java.utilx; import java.util.*;")));
doTestConfiguredFile(false, false, null);
}
public void testReturnTypeSubstitutableForSameOverrideEquivalentMethods() throws Exception {
doTest(LanguageLevel.JDK_1_7, JavaSdkVersion.JDK_1_7, false);
}
}