Is this intentional, or is it some bug that is bei...
# announcements
b
Is this intentional, or is it some bug that is being worked on?
Copy code
class Foo(val bar: List<String> = listOf(), val baz: Int)
println(Foo(7)) // errors here
errors produced:
Copy code
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