method conflicts resolution (IDEA-87672)

This commit is contained in:
anna
2012-07-05 16:13:22 +02:00
parent d18b86df35
commit 89653cb1f1
3 changed files with 34 additions and 7 deletions
@@ -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);
}
}