mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 10:48:09 +07:00
switch tests on new inference
(cherry picked from commit d2cbf3f2833104c3a0381059b0d6ef8ac0b3c94c)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
public abstract class Tmp<T> {
|
||||
private String concat(Tmp<String> tmp) {
|
||||
return tmp.collect(StringBuilder::new, StringBuilder::append, StringBuilder::append).toString();
|
||||
}
|
||||
|
||||
abstract <R> R collect(Supplier<R> supplier,
|
||||
BiConsumer<R, ? super T> accumulator,
|
||||
BiConsumer<R, R> combiner);
|
||||
|
||||
interface Supplier<T> {
|
||||
T get();
|
||||
}
|
||||
|
||||
interface BiConsumer<T, U> {
|
||||
void accept(T t, U u);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user