suspicious ambiguous method error (b.103)
Anna Kozlova
Anna.Kozlova at jetbrains.com
Mon Aug 26 06:55:03 PDT 2013
Hi guys,
I've got an error
java: incompatible types: invalid method reference
reference to yyy is ambiguous
both method yyy(MyTest...) in MyTest and method yyy(MyTest...) in
MyTest match
for code
import java.util.Comparator;
class MyTest {
void test() {
Comparator<MyTest> c = MyTest::yyy;
}
int yyy(MyTest... p) { return 1; }
}
Thank you
Anna Kozlova
JetBrains Inc.
<http://www.intellij.com/> http://www.jetbrains.com
"Develop with pleasure!"
More information about the lambda-dev
mailing list