new inference: captures should stay closed inside nested calls

This commit is contained in:
Anna Kozlova
2014-02-28 19:13:00 +01:00
parent e683dc8fc1
commit d8b3e5c7fd
4 changed files with 28 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
class Test {
class Foo<K> {}
void test(Foo<? extends String> p) {
foo(bar(p)) ;
}
<T> T bar(Foo<T> p) {
return null;
}
<K> K foo(K p) {
return null;
}
}