mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
suggest members of inheritors of expected type (IDEA-74668,IDEA-72992)
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
interface Foo {
|
||||
}
|
||||
|
||||
enum FooEnum implements Foo {
|
||||
ONE, TWO;
|
||||
}
|
||||
|
||||
class Doo {
|
||||
void doSomething(Foo f) {
|
||||
}
|
||||
|
||||
void doSomethingElse() {
|
||||
doSomething(FooEnum.ONE);<caret>
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
interface Foo {
|
||||
}
|
||||
|
||||
enum FooEnum implements Foo {
|
||||
ONE, TWO;
|
||||
}
|
||||
|
||||
class Doo {
|
||||
void doSomething(Foo f) {
|
||||
}
|
||||
|
||||
void doSomethingElse() {
|
||||
doSomething(O<caret>);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
class Super {
|
||||
}
|
||||
|
||||
class Sub extends Super {
|
||||
public static final Super FOO = null;
|
||||
}
|
||||
|
||||
class Intermediate {
|
||||
|
||||
Super s = Sub.FOO;<caret>
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
class Super {
|
||||
}
|
||||
|
||||
class Sub extends Super {
|
||||
public static final Super FOO = null;
|
||||
}
|
||||
|
||||
class Intermediate {
|
||||
|
||||
Super s = F<caret>
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
interface Foo {
|
||||
}
|
||||
|
||||
enum FooEnum implements Foo {
|
||||
ONE, TWO;
|
||||
}
|
||||
|
||||
class Doo {
|
||||
void doSomething(Foo f) {
|
||||
}
|
||||
|
||||
void doSomethingElse() {
|
||||
doSomething(new <caret>);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user