mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 18:58:31 +07:00
create method from usage: allow to reuse parent class type args (IDEA-64683)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// "Create Method 'foo'" "true"
|
||||
class Test {
|
||||
<R, D> R foo(T<R, D> t, D data) {
|
||||
return t.foo(this, data);
|
||||
}
|
||||
}
|
||||
|
||||
class T<R, D> {
|
||||
|
||||
|
||||
public R foo(Test test, D data) {
|
||||
<selection>return null; //To change body of created methods use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// "Create Method 'foo'" "true"
|
||||
class Test {
|
||||
<R, D> R foo(T<R, D> t, D data) {
|
||||
return t.f<caret>oo(this, data);
|
||||
}
|
||||
}
|
||||
|
||||
class T<R, D> {
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user