GuessTypeParameters: explicitly set type element to the expected type

This commit is contained in:
Daniil Ovchinnikov
2017-09-05 21:02:57 +03:00
parent ebfcd19434
commit e5cb361156
9 changed files with 76 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
// "Create method 'foo'" "true"
interface Generic<T> {
List<List<T>> foo();
}
class Usage {
List<List<String>> usage(Generic<String> g) {
return g.foo();
}
}