KT-11275 Inconsistent behaviour when using lambda calls with function arguments without parens
#KT-11275 Fixed
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
fun bar() {
|
||||
foo { "one" } (<caret>{ "two" })
|
||||
}
|
||||
|
||||
fun foo(a: () -> String): (() -> String) -> Unit {
|
||||
return { }
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
fun bar() {
|
||||
foo { "one" } () { "two" }
|
||||
}
|
||||
|
||||
fun foo(a: () -> String): (() -> String) -> Unit {
|
||||
return { }
|
||||
}
|
||||
Reference in New Issue
Block a user