It seems that builder inference makes the compiler...
# compiler
y
It seems that builder inference makes the compiler over-report "overload resolution ambiguity":
Copy code
fun 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