Files
kotlin-fork/idea/testData/intentions/convertReferenceToLambda/when3.kt.after
T
2017-10-06 16:20:45 +03:00

15 lines
239 B
Plaintext
Vendored

class Test {
fun bar() = 1
fun test(x: Int) {
val foo: () -> Int = when (x) {
1 -> {
{ this.bar() }
}
else -> {
this::bar
}
}
}
}