Files
kotlin-fork/idea/testData/refactoring/introduceVariable/FunctionLiteralFromExpected.kt.after
T
2015-11-16 11:29:59 +03:00

8 lines
121 B
Plaintext
Vendored

class A {
fun foo() = 1
}
fun apply(x: (A) -> Int) = 2
fun test() {
val x: (A) -> Int = { it.foo() }
apply(x)
}