Files
kotlin-fork/idea/testData/refactoring/introduceVariable/FunctionLiteralFromExpected.kt.after
T
2014-04-17 19:01:17 +04:00

8 lines
135 B
Plaintext

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