Ruckus
fun fred(map: Map<String, Any?>) { ... } fun test() { fred(mapOf("a" to { x: Color -> x.grayValue() }, "b" to Color.BLUE)) }
{ x: Color -> x.grayValue()}
Type mismatch
Required: Color
Found: (Color) -> UByte
A modern programming language that makes developers happier.