mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
change return type fix: ensure parameter types are untouched (IDEA-138748)
This commit is contained in:
+11
@@ -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;
|
||||
}
|
||||
}
|
||||
+11
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user