Files
kotlin-fork/idea/testData/refactoring/extractFunction/parameters/extractThis/implicitAndExplicitThisInExtension.kt.after
T
2015-09-08 02:05:46 +03:00

11 lines
199 B
Plaintext
Vendored

// PARAM_TYPES: Z
// PARAM_DESCRIPTOR: public fun Z.foo(): kotlin.Int defined in root package
class Z(val a: Int)
// SIBLING:
fun Z.foo(): Int {
return i() + 1
}
private fun Z.i() = this.a + a