summaryrefslogtreecommitdiff
path: root/plugins/kotlin/idea/tests/testData/findUsages/kotlin/internal/findFunctionUsages/usagesOfBaseForFunction.0.kt
blob: a6072ef75d1604b70bfc32e274ef4aae1d7c1633 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtNamedFunction
// OPTIONS: usages, skipImports

interface A {
    @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION")
    internal fun foo()
}

class B : A {
    override fun foo() {} // Find usages gives no results
}

fun main(a: A) {
    a.<caret>foo()
}

// for KT-3769 Find usages gives no result for overrides
// FIR_COMPARISON