Not a perfect solution, but you could move the def...
# language-proposals
e
Not a perfect solution, but you could move the defaults into the method:
Copy code
something(val foo: Int? = null) { foo = foo ?: 100 }