but it accepts this: ```import java.util.function....
# getting-started
c
but it accepts this:
Copy code
import java.util.function.Supplier

class Bar(val x: Int)

fun foo(whatever: Supplier<out Bar>) {}

fun main() {
    val supplier = Supplier<Bar> { Bar(42) }
    foo(supplier) // compiler happy
}
r
Because a
Supplier
is already
out
, but a
TypeReference
isn't.
💯 1