Files
kotlin-fork/idea/testData/refactoring/changeSignature/RemoveDefaultParameterBeforeLambdaAfter.kt
T
Alexey Sedunov 6ff955b66c Change Signature: Implement improved call processing algorithm
#KT-8953 Fixed
 #KT-9525 Fixed
2015-11-10 16:47:48 +03:00

29 lines
414 B
Kotlin
Vendored

fun foo(a: String, c: Boolean = false, block: (String) -> Unit) {
block(a)
}
fun test() {
foo("Hello", c = true) {
println(it)
}
foo("Hello", true) {
println(it)
}
foo("Hello", c = true) {
println(it)
}
foo("Hello") {
println(it)
}
foo("Hello") {
println(it)
}
foo("Hello") {
println("Don't let $it go!")
}
}