mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
Merge commit 'a85b798667f6a81500b21eda3c8d508a28cb969c' into slava/out_of_process_sim_and_dev
GitOrigin-RevId: ccfc7bb2ab1846fbf2c169f6262ffa412f3efb80
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7afa5ca0ac
commit
e4effb75b9
@@ -1,27 +0,0 @@
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
|
||||
class MyTest {
|
||||
{
|
||||
Function<B, Try<A>> aNew = Try::new;
|
||||
Try<B> bTry = new Try<>(new B());
|
||||
Try<A> aTry = bTry.flatMap(Try::new);
|
||||
}
|
||||
|
||||
private static class A { }
|
||||
|
||||
private static class B extends A { }
|
||||
|
||||
private static class Try<T> {
|
||||
public Try(T t) {
|
||||
}
|
||||
public Try(Exception e) {
|
||||
}
|
||||
|
||||
public <U> Try<U> flatMap(Function<? super T, Try<U>> mapper) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user