KT-11275 Inconsistent behaviour when using lambda calls with function arguments without parens

#KT-11275 Fixed
This commit is contained in:
Valentin Kipyatkov
2016-04-07 20:38:40 +03:00
parent 50e7079efc
commit b5e89713cd
4 changed files with 21 additions and 1 deletions
@@ -0,0 +1,7 @@
fun bar() {
foo { "one" } (<caret>{ "two" })
}
fun foo(a: () -> String): (() -> String) -> Unit {
return { }
}
@@ -0,0 +1,7 @@
fun bar() {
foo { "one" } () { "two" }
}
fun foo(a: () -> String): (() -> String) -> Unit {
return { }
}