Ruckus
06/20/2019, 9:57 PMfun fred(map: Map<String, Any?>) {
...
}
fun test() {
fred(mapOf("a" to { x: Color -> x.grayValue() }, "b" to Color.BLUE))
}
The { x: Color -> x.grayValue()}
is marked as an error due to
Type mismatch
Required: Color
Found: (Color) -> UByteBut it compiles and runs fine