create field from parameter: all erase unavailable type params (IDEA-56163)

This commit is contained in:
unknown
2010-07-01 13:37:08 +04:00
committed by unknown
parent 69db2ce7ef
commit f25abb008c
8 changed files with 110 additions and 36 deletions
@@ -0,0 +1,11 @@
// "Create Field For Parameter 'p1'" "true"
import java.util.*;
class Test{
private final List<String> myP1;
<T extends String> void f(List<T> p1){
myP1 = p1;
}
}
@@ -0,0 +1,11 @@
// "Create Field For Parameter 'p1'" "true"
import java.util.*;
class Test<T>{
private final List<T> myP1;
void f(List<T> p1){
myP1 = p1;
}
}
@@ -0,0 +1,11 @@
// "Create Field For Parameter 'p1'" "true"
import java.util.*;
class Test{
private final List<Object> myP1;
<T> void f(List<T> p1){
myP1 = p1;
}
}
@@ -0,0 +1,8 @@
// "Create Field For Parameter 'p1'" "true"
import java.util.*;
class Test{
<T extends String> void f(List<T> p<caret>1){
}
}
@@ -0,0 +1,8 @@
// "Create Field For Parameter 'p1'" "true"
import java.util.*;
class Test<T>{
void f(List<T> p<caret>1){
}
}
@@ -0,0 +1,8 @@
// "Create Field For Parameter 'p1'" "true"
import java.util.*;
class Test{
<T> void f(List<T> p<caret>1){
}
}