https://kotlinlang.org logo
e

ean5533

09/15/2016, 10:43 PM
Not a perfect solution, but you could move the defaults into the method:
Copy code
something(val foo: Int? = null) { foo = foo ?: 100 }