mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
testdata to fix
This commit is contained in:
+1
-1
@@ -360,7 +360,7 @@ public class InferenceSession {
|
||||
for (PsiType classType : extendsListTypes) {
|
||||
classType = substituteWithInferenceVariables(mySiteSubstitutor.substitute(classType));
|
||||
HashSet<InferenceVariable> dependencies = new HashSet<InferenceVariable>();
|
||||
collectDependencies(classType, dependencies);
|
||||
collectDependencies(classType, dependencies);//todo isProperType
|
||||
if (dependencies.isEmpty() || dependencies.size() == 1 && dependencies.contains(variable)) {
|
||||
added = true;
|
||||
}
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import java.util.List;
|
||||
|
||||
class Sample {
|
||||
<T extends List<K>, K extends List<T>> void foo(){}
|
||||
|
||||
{
|
||||
foo();
|
||||
}
|
||||
}
|
||||
+5
@@ -57,6 +57,11 @@ public class GraphInferenceHighlightingTest extends LightDaemonAnalyzerTestCase
|
||||
doTest();
|
||||
}
|
||||
|
||||
@Bombed(day = 30, month = Calendar.AUGUST)
|
||||
public void testCyclicParamsDependency() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testInferenceForFirstArg() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user