Change Signature: Implement improved call processing algorithm

#KT-8953 Fixed
 #KT-9525 Fixed
This commit is contained in:
Alexey Sedunov
2015-11-03 20:46:50 +03:00
parent b334f92748
commit 6ff955b66c
23 changed files with 471 additions and 204 deletions
@@ -0,0 +1,29 @@
fun <caret>foo(a: String, b: Boolean = false, c: Boolean = false, block: (String) -> Unit) {
block(a)
}
fun test() {
foo("Hello", b = false, c = true) {
println(it)
}
foo("Hello", false, true) {
println(it)
}
foo("Hello", c = true) {
println(it)
}
foo("Hello", b = false) {
println(it)
}
foo("Hello", false) {
println(it)
}
foo("Hello") {
println("Don't let $it go!")
}
}