KT-9601, KT-10103:
Chose maximally specific function in callable reference #KT-9601 Fixed #KT-10103 Fixed
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// !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
|
||||
}
|
||||
Reference in New Issue
Block a user