Files
kotlin/idea/testData/refactoring/extractFunction/basic/delegatingFunction.kt.after
2015-05-13 16:13:13 +02:00

14 lines
249 B
Plaintext
Vendored

// PARAM_DESCRIPTOR: val t: <no name provided> defined in foo
// PARAM_TYPES: T
interface T {
fun test() {}
}
fun foo() {
val t = object: T {}
__dummyTestFun__(t)
}
private fun __dummyTestFun__(t: T) {
(object : T by t {}).test()
}