benleggiero
01/01/2019, 12:36 AMclass Foo(val bar: List<String> = listOf(), val baz: Int)
println(Foo(7)) // errors here
errors produced:
Type mismatch: inferred type is Int but List<String> was expected
No value passed for parameter baz
This is counter to how I expect default values to work