[API Usage] Use type refinements in overrides-related facilities

This commit is contained in:
Denis Zharkov
2019-07-01 15:36:24 +03:00
committed by Dmitry Savvinov
parent 694f521bfd
commit b7e011a29b
22 changed files with 165 additions and 60 deletions
@@ -7,4 +7,8 @@ expect interface BaseI {
fun f(p: Upper)
}
interface I : BaseI
interface Base2 {
fun foo(p: Upper)
}
interface I : BaseI
@@ -7,7 +7,9 @@ actual interface BaseI {
actual fun f(p: Upper)
}
internal class Impl : I {
internal class Impl : I, Base2 {
override fun f(p: Upper) {
}
}
override fun foo(p: Upper) {}
}