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

17 lines
302 B
Kotlin
Vendored

// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_EXPRESSION
// KT-9601 Chose maximally specific function in callable reference
open class A {
fun foo(a: Any) {}
fun fas(a: Int) {}
}
class B: A() {
fun foo(a: Int) {}
fun fas(a: Any) {}
}
fun test() {
B::foo
B::fas
}