method refs: check constructor refs qualifiers (IDEA-92722)

This commit is contained in:
anna
2012-10-10 16:43:24 +02:00
parent 0706510a1e
commit a927ecf5d1
4 changed files with 51 additions and 1 deletions

View File

@@ -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;
}
}