9ccb1fd506
Chose maximally specific function in callable reference #KT-9601 Fixed #KT-10103 Fixed
15 lines
222 B
Kotlin
Vendored
15 lines
222 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() {
|
|
B::foo
|
|
::bar
|
|
} |