mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
method refs: accept instance inner classes from instance methods
This commit is contained in:
@@ -115,4 +115,37 @@ class NonStaticInner2 {
|
||||
{
|
||||
I1 i1 = NonStaticInner2.Inner :: new;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class NonStaticInner3 {
|
||||
class Foo {
|
||||
Foo(Integer i) {}
|
||||
Foo() {}
|
||||
}
|
||||
|
||||
interface I1<X> {
|
||||
X m(int i);
|
||||
}
|
||||
|
||||
interface I2<X> {
|
||||
X m();
|
||||
}
|
||||
|
||||
interface I3<X> {
|
||||
X m(NonStaticInner3 rec, int i);
|
||||
}
|
||||
|
||||
interface I4<X> {
|
||||
X m(NonStaticInner3 rec);
|
||||
}
|
||||
|
||||
{
|
||||
I1<Foo> b1 = Foo::new;
|
||||
I2<Foo> b2 = Foo::new;
|
||||
}
|
||||
|
||||
{
|
||||
I3<Foo> b1 = Foo::new;
|
||||
I4<Foo> b2 = Foo::new;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user