KT-9601, KT-10103:
Chose maximally specific function in callable reference #KT-9601 Fixed #KT-10103 Fixed
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// !CHECK_TYPE
|
||||
|
||||
interface IA
|
||||
interface IB : IA
|
||||
|
||||
fun IA.extFun() {}
|
||||
fun IB.extFun() {}
|
||||
|
||||
fun test() {
|
||||
val extFun = IB::extFun
|
||||
checkSubtype<IB.() -> Unit>(extFun)
|
||||
}
|
||||
Reference in New Issue
Block a user