mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
24 lines
410 B
Java
24 lines
410 B
Java
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);
|
|
}
|
|
}
|
|
|