inference: partially resolve before erasure for target type inference

IDEA-192208
This commit is contained in:
Anna Kozlova
2018-05-28 15:10:05 +03:00
parent 331c0f0cab
commit ab271fcb5b
3 changed files with 14 additions and 7 deletions

View File

@@ -0,0 +1,10 @@
abstract class MyTest {
interface A<S> {}
interface B<K> {}
abstract <_B, _P extends A<_B>> _P foo(B<_B> data);
public void m(B b) {
final A a = foo(b);
}
}