mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
13 lines
280 B
Java
13 lines
280 B
Java
class X {
|
|
void method(String t) { }
|
|
}
|
|
|
|
class Y<S extends CharSequence> extends X {
|
|
void method(S s) { }
|
|
}
|
|
|
|
class Test {
|
|
void x(final Y<String> err) {
|
|
err.method<error descr="Ambiguous method call: both 'Y.method(String)' and 'X.method(String)' match">("")</error>;
|
|
}
|
|
} |