mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 10:48:09 +07:00
GuessTypeParameters: explicitly set type element to the expected type
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Create method 'foo'" "true"
|
||||
interface Generic<T> {
|
||||
}
|
||||
|
||||
class Usage {
|
||||
|
||||
List<List<String>> usage(Generic<String> g) {
|
||||
return g.fo<caret>o();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user