mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
java method reference inference: keep additional inference variables when second search is not possible (IDEA-252839)
GitOrigin-RevId: 358b0408221aaf6e51dbf87867ae8f33ba0d0fde
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2c2bce389a
commit
9970306c8f
@@ -0,0 +1,16 @@
|
||||
import java.util.*;
|
||||
|
||||
interface Foo<T> {
|
||||
static <E> Foo<E> of(E e1) {
|
||||
return null;
|
||||
}
|
||||
|
||||
T get(int i);
|
||||
|
||||
}
|
||||
class MainTest {
|
||||
{
|
||||
Optional.of("one,two").map(Foo::<String>of).get().get(0).split(",");
|
||||
Optional.of("one,two").map(Foo::of).get().get(0).split(",");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user