Files
kotlin-fork/idea/testData/refactoring/extractFunction/delegation/delegationByExpression.kt.after
T
2014-07-11 19:13:22 +04:00

11 lines
187 B
Plaintext

// PARAM_TYPES: kotlin.Int
// PARAM_TYPES: kotlin.Int
trait T
class A(a: Int, b: Int): T
class B(a: Int, b: Int): T by A(i(a, b), a - b)
fun i(a: Int, b: Int): Int {
return a + b
}