PSI: Add parentheses around non-trivial callee expressions

#KT-8232 Fixed
This commit is contained in:
Alexey Sedunov
2015-06-25 16:18:18 +03:00
parent 5ac1fbf59b
commit 8c9863e759
5 changed files with 25 additions and 1 deletions
@@ -0,0 +1,4 @@
fun foo(x : String, y : () -> String.() -> Unit) {
val <caret>f = y()
x.f()
}
@@ -0,0 +1,3 @@
fun foo(x : String, y : () -> String.() -> Unit) {
x.(y())()
}