take into account container class type parameters: return type

detection if return type mentions type parameters should include types specified on outer class
This commit is contained in:
Anna Kozlova
2017-06-22 13:24:20 +03:00
parent 1307ac8e78
commit cbe6eb48ed
3 changed files with 20 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
class Outer<T> {
private class Inner{}
{
Outer<String>.Inner inner = foo(foo(null));
}
private static <K> Outer<K>.Inner foo(Outer<K>.Inner u){
return null;
}
}