IDEA-121234 IDEA can not update method return type

This commit is contained in:
Anna Kozlova
2014-03-14 20:43:58 +01:00
parent c7648e1a1c
commit 3704bfc631
6 changed files with 74 additions and 26 deletions
@@ -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> {}
@@ -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> {}