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

10 lines
206 B
Plaintext
Vendored

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