mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 03:07:47 +07:00
lambda -> method ref: do not convert if resulted ref would be ambiguous (IDEA-116964)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// "Replace lambda with method reference" "true"
|
||||
class Example {
|
||||
interface I {
|
||||
String foo(Integer i);
|
||||
}
|
||||
|
||||
{
|
||||
I i = Object::toString;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Replace lambda with method reference" "true"
|
||||
class Example {
|
||||
interface I {
|
||||
String foo(Integer i);
|
||||
}
|
||||
|
||||
{
|
||||
I i = (i1) -> i1.<caret>toString();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user