mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 02:09:59 +07:00
live templates: incorrect adding generic parameter IDEA-134434
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// "Create method 'f'" "true"
|
||||
public class CreateMethodTest {
|
||||
public <T> void aMethod(final T t) {
|
||||
class Nested {
|
||||
public T call() {
|
||||
T result = f(t);
|
||||
return result;
|
||||
}
|
||||
|
||||
private T f(T t) {
|
||||
<selection>return null;</selection>
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// "Create method 'f'" "true"
|
||||
public class CreateMethodTest {
|
||||
public <T> void aMethod(final T t) {
|
||||
class Nested {
|
||||
public T call() {
|
||||
T result = f<caret>(t);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user