mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
ambiguous method calls: conflict resolver, tests (IDEA-78027)
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
package pck;
|
||||
class Test {
|
||||
void test() {
|
||||
B.method(new ArgumentB());
|
||||
}
|
||||
}
|
||||
|
||||
class A {
|
||||
static void method(ArgumentA a) { }
|
||||
}
|
||||
|
||||
class B extends A {
|
||||
static void method(ArgumentB b) { }
|
||||
}
|
||||
|
||||
class ArgumentA<T> {}
|
||||
class ArgumentB extends ArgumentA<Object> {}
|
||||
@@ -164,4 +164,8 @@ public class AdvHighlightingJdk7Test extends DaemonAnalyzerTestCase {
|
||||
public void testAmbiguousIDEA67837() throws Exception {
|
||||
doTestAmbiguous();
|
||||
}
|
||||
|
||||
public void testAmbiguousIDEA78027() throws Exception {
|
||||
doTestAmbiguous();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user