mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
introduce parameter: substitute type parameters on call site
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import java.util.*;
|
||||
class Test {
|
||||
<T> void foo(T t, final ArrayList<T> anObject) {
|
||||
List<T> ls = anObject;
|
||||
}
|
||||
|
||||
void bar() {
|
||||
String s = "";
|
||||
foo(s, new ArrayList<String>());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import java.util.*;
|
||||
class Test {
|
||||
<T> void foo(T t) {
|
||||
List<T> ls = <selection>new ArrayList<T>()</selection>;
|
||||
}
|
||||
|
||||
void bar() {
|
||||
String s = "";
|
||||
foo(s);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user