create method from usage: create method type params if needed (IDEA-55505)

This commit is contained in:
anna
2010-11-12 16:11:22 +03:00
parent 9de3abe249
commit edc0799f69
3 changed files with 56 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
// "Create Method 'f'" "true"
class A {
<T> T foo(){
B<T> x = f();
}
private <T> B<T> f() {
<selection>return null; //To change body of created methods use File | Settings | File Templates.</selection>
}
}
class B<K>{}

View File

@@ -0,0 +1,8 @@
// "Create Method 'f'" "true"
class A {
<T> T foo(){
B<T> x = f<caret>();
}
}
class B<K>{}