mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
IDEA-121234 IDEA can not update method return type
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
// "Make 'get' return 'Callable<java.lang.Integer>'" "true"
|
||||
interface Gettable<T> {
|
||||
Callable<Integer> get();
|
||||
}
|
||||
|
||||
public class Issue<T> implements Gettable<T> {
|
||||
public Callable<Integer> get() {
|
||||
|
||||
return new Callable<Integer>() {
|
||||
public Integer call() {
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class Callable<T> {}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// "Make 'get' return 'Callable<java.lang.Integer>'" "true"
|
||||
interface Gettable<T> {
|
||||
Callable<Integer> get();
|
||||
}
|
||||
|
||||
public class Issue<T> implements Gettable<T> {
|
||||
public void get() {
|
||||
|
||||
return new Call<caret>able<Integer>() {
|
||||
public Integer call() {
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class Callable<T> {}
|
||||
Reference in New Issue
Block a user