new inference: process fresh variables depending on resolved vars (IDEA-56775)

This commit is contained in:
Anna Kozlova
2014-09-08 20:29:29 +04:00
parent 6feaeec018
commit cbb22b8c9f
3 changed files with 24 additions and 3 deletions
@@ -0,0 +1,17 @@
class Test {
class X<F extends Foo, B extends Bar<F, B>> {
}
class Foo {
}
class Bar<A, B> {
}
private <F extends Foo, B extends Bar<F, B>> X<F, B> foo() {
return null;
}
{
X x = foo();
}
}
@@ -240,6 +240,10 @@ public class GraphInferenceHighlightingTest extends LightDaemonAnalyzerTestCase
doTest();
}
public void testFreshVariablesCreatedDuringResolveDependingOnAlreadyResolvedVariables() throws Exception {
doTest();
}
private void doTest() throws Exception {
doTest(false);
}