mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
inline: add inferred type arguments after inline if needed (IDEADEV-35430)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import java.util.*;
|
||||
class Test {
|
||||
private static <T> List<T> <caret>foo() { return Collections.emptyList(); }
|
||||
private static <T> List<T> bar(List<T> xs) { return xs; }
|
||||
private static void gazonk() {
|
||||
List<String> ss = bar(Test.<String>foo());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import java.util.*;
|
||||
class Test {
|
||||
private static <T> List<T> bar(List<T> xs) { return xs; }
|
||||
private static void gazonk() {
|
||||
List<String> ss = bar(Collections.<String>emptyList());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user