method refs: check if interface functional (IDEA-125511)

This commit is contained in:
Anna Kozlova
2014-05-26 09:19:31 +04:00
parent 5e7d32c94e
commit eaa9ce63f6
4 changed files with 25 additions and 6 deletions

View File

@@ -38,5 +38,5 @@ class Test2 {
void foo(Integer i) {}
<error descr="Incompatible types. Found: '<method reference>', required: 'java.lang.Object'">Object o = Test2::foo;</error>
Object o = <error descr="Object is not a functional interface">Test2::foo</error>;
}