change return type fix: ensure parameter types are untouched (IDEA-138748)

This commit is contained in:
Anna Kozlova
2015-04-08 12:06:01 +02:00
parent 45c5c2163f
commit b62f3b746c
3 changed files with 23 additions and 1 deletions
@@ -0,0 +1,11 @@
// "Make 'f' return 'int'" "true"
interface SomeInterface<T> {
int f(T t);
}
class B implements SomeInterface<String> {
@Override
public int f(String s) {
return 1;
}
}
@@ -0,0 +1,11 @@
// "Make 'f' return 'int'" "true"
interface SomeInterface<T> {
void f(T t);
}
class B implements SomeInterface<String> {
@Override
public void f(String s) {
return <caret>1;
}
}