Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/resolve/overloadsMember.kt
T
Dmitry Petrov 9ccb1fd506 KT-9601, KT-10103:
Chose maximally specific function in callable reference
 #KT-9601 Fixed
 #KT-10103 Fixed
2015-11-26 12:52:12 +03:00

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
}