summaryrefslogtreecommitdiff
path: root/plugins/kotlin/idea/tests/testData/refactoring/extractFunction/parameters/candidateTypes/liftAnonymousToSupertype2.kt.after
blob: 301eeef91482fd2353f8d69f0ed04184efd1f948 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// PARAM_DESCRIPTOR: val x: `<no name provided>` defined in test
// PARAM_TYPES: A
// WITH_RUNTIME

open class A {

}

fun foo(a: A) {

}

// SIBLING:
fun test() {
    val x = object: A() { }
    __dummyTestFun__(x)
}

private fun __dummyTestFun__(x: A) {
    foo(x)
}