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,10 @@
class Test {
fun bar() = 1
fun test(x: Int) {
val foo: () -> Int = when (x) {
1 -> <caret>this::bar
else -> this::bar
}
}
}