new inference: prohibit substitution during checked exception constraint processing

This commit is contained in:
Anna Kozlova
2014-09-15 17:43:22 +04:00
parent dc988e848d
commit 800f508c44
4 changed files with 67 additions and 4 deletions

View File

@@ -0,0 +1,29 @@
import java.io.IOException;
import java.util.List;
class Test {
interface A<T> {
T m(T t);
}
interface B<K> {
List<K> l(K k) throws IOException;
}
<F> F foo(A<F> a) {
return null;
}
<R> R bar(B<R> b) {
return null;
}
<Z> List<Z> baz(Z l) throws IOException{
return null;
}
{
Integer i = foo(a -> bar(b -> baz(b)));
}
}