Youssef Shoaib [MOD]
04/10/2025, 7:53 PMfun main() {
println(foo {
val bar: Foo<Int> = this
5
})
}
class Foo<T>
fun <T> foo(block: Foo<T>.() -> T): T = TODO()
That's very annoying because it forces me to specify type arguments in more places. Note that in this example, T must be Int even before the compiler runs builder inference because the lambda returns Int. Reported