mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-30 01:20:53 +07:00
10 lines
355 B
Java
10 lines
355 B
Java
class Test {
|
|
interface One<T> {
|
|
<S extends T> S save(S entity);
|
|
<S extends T> Iterable<S> save(Iterable<S> entities);
|
|
}
|
|
static One<String> foo;
|
|
public static void main(String[] args) throws Exception {
|
|
foo.save <error descr="Ambiguous method call: both 'One.save(String)' and 'One.save(Iterable<String>)' match">(null)</error>;
|
|
}
|
|
} |