summaryrefslogtreecommitdiff
path: root/plugins/kotlin/idea/tests/testData/refactoring/extractFunction/parameters/candidateTypes/liftAnonymousToSupertype2.kt
blob: e273e266daafffde5b8b1b035f0c6ea28c4b553c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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() { }
    <selection>foo(x)</selection>
}