new inference: initial tests

This commit is contained in:
Anna Kozlova
2013-09-20 12:11:57 +04:00
parent 970a180902
commit 935cdbaf3b
229 changed files with 7713 additions and 1 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>;
}
}