mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
IDEA-85987 inner anonymous classes cannot implement interfaces fixed
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// "Make 'null' implement 'Foo.IBar'" "false"
|
||||
|
||||
public abstract class Foo {
|
||||
static Foo anonymous = new Foo() {
|
||||
@Override
|
||||
void fooMethod() {
|
||||
foo2Method(th<caret>is);
|
||||
}
|
||||
};
|
||||
|
||||
protected Foo() {
|
||||
IBar bar = anonymou<caret>s;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// "Make 'null' implement 'Foo.IBar'" "false"
|
||||
|
||||
public abstract class Foo {
|
||||
public static interface IBar {
|
||||
void barMethod();
|
||||
}
|
||||
|
||||
abstract void fooMethod();
|
||||
|
||||
void foo2Method(IBar b) {
|
||||
}
|
||||
|
||||
static Foo anonymous = new Foo() {
|
||||
@Override
|
||||
void fooMethod() {
|
||||
foo2Method(th<caret>is);
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user