mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-143839 No smart completion in method return type
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
class Foo {
|
||||
public S<caret> get() {
|
||||
return new MyStringBuffer();
|
||||
}
|
||||
}
|
||||
|
||||
class MyStringBuffer extends StringBuffer implements SomeInterface<String> {}
|
||||
interface SomeInterface<T> {}
|
||||
class SomeOtherClass {}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
import java.lang.StringBuilder;
|
||||
|
||||
public class Main {
|
||||
|
||||
public <caret> main() {
|
||||
if (equals(2)) {
|
||||
return "a";
|
||||
} else {
|
||||
return new StringBuilder();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user