Files
kotlin-fork/idea/testData/refactoring/extractFunction/parameters/misc/variableAsFunction.kt.after
T
2015-01-12 22:55:33 +03:00

14 lines
230 B
Plaintext
Vendored

// PARAM_TYPES: A
// PARAM_DESCRIPTOR: val foo: A defined in testProp
class A {
fun invoke() = 20
}
// SIBLING:
fun testProp() {
val foo = A()
__dummyTestFun__(foo)
}
private fun __dummyTestFun__(foo: A) {
foo()
}