Insert brackets in "Convert reference to lambda" if necessary

So #KT-16394 Fixed
This commit is contained in:
Toshiaki Kameyama
2017-10-04 18:34:04 +03:00
committed by Mikhail Glukhikh
parent 0348561cd2
commit ec64a7e422
18 changed files with 222 additions and 2 deletions
@@ -0,0 +1,7 @@
class Test {
fun bar(a: String) = 1
fun test(x: Int) {
val foo: (a: String) -> Int = if (x == 1) this::bar else <caret>this::bar
}
}