Insert brackets in "Convert reference to lambda" if necessary
So #KT-16394 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
0348561cd2
commit
ec64a7e422
@@ -0,0 +1,10 @@
|
||||
class Test {
|
||||
fun bar() = 1
|
||||
|
||||
fun test(x: Int) {
|
||||
val foo: () -> Int = when (x) {
|
||||
1 -> this::bar
|
||||
else -> <caret>this::bar
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user