mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
type migration: infer type parameters from all available information (IDEA-55777)
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
// "Change 'list' type to 'Lost<java.lang.String,java.lang.Integer>'" "true"
|
||||
public class Test {
|
||||
void foo() {
|
||||
Lost<String, Integer> list = new Lost<String,Integer>();
|
||||
list.add("", new Integer(42));
|
||||
}
|
||||
}
|
||||
|
||||
class Lost<T, K> {
|
||||
void add(T lt, K t){}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Change 'list' type to 'Lost<java.lang.String,java.lang.Integer>'" "true"
|
||||
public class Test {
|
||||
void foo() {
|
||||
Lost<String, String> list = new Lost<String, String>();
|
||||
list.add("", new Int<caret>eger(42));
|
||||
}
|
||||
}
|
||||
|
||||
class Lost<T, K> {
|
||||
void add(T lt, K t){}
|
||||
}
|
||||
Reference in New Issue
Block a user