summaryrefslogtreecommitdiff
path: root/plugins/kotlin/completion/tests/testData/basic/common/shadowing/PreferCloserReceiverGeneric.kt
blob: 703991d74d7f25e391bb1dbcb140fa3e689b7230 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// FIR_IDENTICAL
// FIR_COMPARISON
interface I<T> {
    fun xxx(): T
}

fun foo(i1: I<Int>, i2: I<String>) {
    with (i1) {
        with (i2) {
           xx<caret>
        }
    }
}

// EXIST: { lookupString: "xxx", itemText: "xxx", tailText: "()", typeText: "String", icon: "nodes/abstractMethod.svg"}
// NOTHING_ELSE