[API Usage] Use type refinements in overrides-related facilities
This commit is contained in:
committed by
Dmitry Savvinov
parent
694f521bfd
commit
b7e011a29b
+5
-1
@@ -7,4 +7,8 @@ expect interface BaseI {
|
||||
fun f(p: Upper)
|
||||
}
|
||||
|
||||
interface I : BaseI
|
||||
interface Base2 {
|
||||
fun foo(p: Upper)
|
||||
}
|
||||
|
||||
interface I : BaseI
|
||||
|
||||
+4
-2
@@ -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) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user