Chris Cordero
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 }
Ruckus
Supplier
out
TypeReference
A modern programming language that makes developers happier.