testdata for IDEA-57534

This commit is contained in:
anna
2013-05-02 14:52:59 +02:00
parent 448d708281
commit 3d8ba6e745
2 changed files with 16 additions and 0 deletions
@@ -0,0 +1,15 @@
abstract class C{
abstract <T extends Cloneable> void foo(T x);
abstract <T extends Object & Cloneable> void foo(T x);
void bar(Cloneable x){
foo<error descr="Ambiguous method call: both 'C.foo(Cloneable)' and 'C.foo(Cloneable)' match">(x)</error>;
}
}
abstract class D {
abstract <T extends Iterable<? extends Exception>> void foo(T x);
abstract <T extends Object & Iterable<? super Exception>> void foo(T x);
void bar(Iterable<Exception> x){
foo<error descr="Ambiguous method call: both 'D.foo(Iterable<Exception>)' and 'D.foo(Iterable<Exception>)' match">(x)</error>;
}
}