pull up inference errors when current call has no type parameters (IDEA-169316)

This commit is contained in:
Anna.Kozlova
2017-03-09 15:04:34 +01:00
parent 585bf0e512
commit c719482b06
3 changed files with 21 additions and 3 deletions
@@ -0,0 +1,11 @@
class A<T> {}
class B<K> extends A<String> {}
class X<L> {
public X(A<L> b1) {
this(new B<>());
}
public X(B<L> b2) {}
}
@@ -81,6 +81,10 @@ public class Diamond8HighlightingTest extends LightDaemonAnalyzerTestCase {
doTest();
}
public void testDiamondInsideOverloadedThisReference() throws Exception {
doTest();
}
private void doTest() throws Exception {
doTest(BASE_PATH + "/" + getTestName(false) + ".java", false, false);
}