mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
method conflicts resolution (IDEA-87672)
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
package pck;
|
||||
class BaseMatcher<T> {
|
||||
}
|
||||
|
||||
class MyMatcher extends BaseMatcher<String> {
|
||||
}
|
||||
|
||||
class Expectations {
|
||||
public <T> T with(T t) {
|
||||
System.out.println("T");
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T with(BaseMatcher<T> m) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
MyMatcher t = new MyMatcher();
|
||||
String w = new Expectations().with( t);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user