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(a: String) = 1
|
||||
|
||||
fun test(x: Int) {
|
||||
val foo: (a: String) -> Int = when (x) {
|
||||
1 -> <caret>this::bar
|
||||
else -> this::bar
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user