14 lines
321 B
Kotlin
Vendored
14 lines
321 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// KT-128 Support passing only the last closure if all the other parameters have default values
|
|
|
|
fun div(c : String = "", f : () -> Unit) {}
|
|
fun f() {
|
|
div { // Nothing passed, but could have been...
|
|
// ...
|
|
}
|
|
|
|
div (c = "foo") { // More things could have been passed
|
|
// ...
|
|
}
|
|
}
|