also <@U0B87PEHK> what I mean by cant infer the ty...
# announcements
g
also @dh44t what I mean by cant infer the type is it cant infer the type returned by
async
, and the syntax does not allow you to provide it explicitly. In short:
Copy code
@Test fun `when forward composing should infer types correctly`(): CompletableFuture<Int> = ::async<Int> forwardCompose wrapper { 42 }
fun <T> async(block: () -> T): CompletableFuture<T> = TODO();
fun <T> wrapper(block: () -> T): T = TODO();
wont compile