mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
method refs: check constructor refs qualifiers (IDEA-92722)
This commit is contained in:
@@ -53,7 +53,7 @@ class DefaultConstructor2 {
|
||||
|
||||
void f() {
|
||||
<error descr="Incompatible types. Found: '<method reference>', required: 'DefaultConstructor2.I'">I i1 = DefaultConstructor2 :: new;</error>
|
||||
<error descr="Incompatible types. Found: '<method reference>', required: 'DefaultConstructor2.I'">I i2 = this::new;</error>
|
||||
I i2 = <error descr="Cannot find class this">this</error>::new;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user