suggest members of inheritors of expected type (IDEA-74668,IDEA-72992)

This commit is contained in:
peter
2011-09-23 16:14:26 +02:00
parent 7015caaa54
commit b30cd1e755
16 changed files with 153 additions and 42 deletions
@@ -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>);
}
}