9ccb1fd506
Chose maximally specific function in callable reference #KT-9601 Fixed #KT-10103 Fixed
16 lines
285 B
Kotlin
Vendored
16 lines
285 B
Kotlin
Vendored
// !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
|
|
} |