Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/resolve/kt9601.fir.kt
T

15 lines
249 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_EXPRESSION
open class A
class B: A()
fun A.foo() {}
fun B.foo() {} // more specific
fun bar(a: Any) {}
fun bar(a: Int) {} // more specific
fun test() {
<!UNRESOLVED_REFERENCE!>B::foo<!>
::bar
}