mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
return type fix: change type arguments of dependant type parameters only (IDEA-158361)
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
// "Make 'foo' return 'java.util.List<java.lang.Integer>'" "true"
|
||||
import java.util.List;
|
||||
interface Main<A, B> {
|
||||
List<A> foo();
|
||||
}
|
||||
|
||||
class MainImpl implements Main<Integer,String> {
|
||||
@Override
|
||||
public List<Integer> foo() {
|
||||
return bar();
|
||||
}
|
||||
|
||||
private List<Integer> bar() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// "Make 'foo' return 'java.util.List<java.lang.Integer>'" "true"
|
||||
import java.util.List;
|
||||
interface Main<A, B> {
|
||||
List<A> foo();
|
||||
}
|
||||
|
||||
class MainImpl implements Main<String, String> {
|
||||
@Override
|
||||
public List<String> foo() {
|
||||
return b<caret>ar();
|
||||
}
|
||||
|
||||
private List<Integer> bar() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user