live templates: incorrect adding generic parameter IDEA-134434

This commit is contained in:
Andrey Starovoyt
2014-12-23 18:14:29 +03:00
parent 74eaf5419f
commit b20fc1c936
9 changed files with 108 additions and 21 deletions

View File

@@ -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>
}
}
}
}

View File

@@ -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;
}
}
}
}