mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 06:11:42 +07:00
pull up inference errors when current call has no type parameters (IDEA-169316)
This commit is contained in:
+11
@@ -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) {}
|
||||
}
|
||||
+4
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user