mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
SOE with recursive type parameter dependencies
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
class Test {
|
||||
private <<error descr="Cyclic inheritance involving 'S'"></error>S extends K, K extends S> S b(S s) {
|
||||
|
||||
if (true) return b <error descr="'b(S)' in 'Test' cannot be applied to '()'">()</error>;
|
||||
<error descr="Missing return statement">}</error>
|
||||
}
|
||||
@@ -571,6 +571,10 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
doTest(LanguageLevel.JDK_1_7, JavaSdkVersion.JDK_1_7, true);
|
||||
}
|
||||
|
||||
public void testRecursiveBoundsDependencies() throws Exception {
|
||||
doTest(LanguageLevel.JDK_1_7, JavaSdkVersion.JDK_1_7, false);
|
||||
}
|
||||
|
||||
public void testLeastUpperBoundWithRecursiveTypes() throws Exception {
|
||||
final PsiManager manager = getPsiManager();
|
||||
final GlobalSearchScope scope = GlobalSearchScope.allScope(getProject());
|
||||
|
||||
Reference in New Issue
Block a user