mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 19:29:30 +07:00
lambda: ensure static factory is used when diamonds
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
import java.util.List;
|
||||
import java.util.function.Function;
|
||||
|
||||
class E<In> {
|
||||
E(List<In> l, Function<In, Integer> f, List<In> ff) {}
|
||||
|
||||
void m(List<String> l, List ff){
|
||||
|
||||
E<String> e = new E<>(l, o -> o.length(), ff);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user