mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 15:41:26 +07:00
IDEA-117827 Invalid "ambiguous method call" error
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
public class Testsss {
|
||||
|
||||
public <TA, CA extends Iterable<TA>> void that(Iterable<TA> target) {}
|
||||
|
||||
public <T, C extends Collection<T>> void that(Collection<T> target) {}
|
||||
|
||||
void foo(ImmutableList<String> l) {
|
||||
that( l);
|
||||
}
|
||||
|
||||
interface ImmutableList<T> extends List<T> {}
|
||||
}
|
||||
Reference in New Issue
Block a user