f954a6c812
#KT-34648 Fixed
36 lines
530 B
Kotlin
Vendored
36 lines
530 B
Kotlin
Vendored
// !USE_EXPERIMENTAL: kotlin.RequiresOptIn
|
|
|
|
@RequiresOptIn(level = RequiresOptIn.Level.WARNING)
|
|
annotation class E1
|
|
@RequiresOptIn(level = RequiresOptIn.Level.WARNING)
|
|
annotation class E3
|
|
|
|
interface Base1 {
|
|
@E1
|
|
fun foo()
|
|
}
|
|
|
|
interface Base2 {
|
|
fun foo()
|
|
}
|
|
|
|
interface Base3 {
|
|
@E3
|
|
fun foo()
|
|
}
|
|
|
|
class DerivedA : Base1, Base2, Base3 {
|
|
override fun foo() {}
|
|
}
|
|
|
|
class DerivedB : Base1, Base3 {
|
|
@E3
|
|
override fun foo() {}
|
|
}
|
|
|
|
class DerivedC : Base1, Base2, Base3 {
|
|
@E1
|
|
@E3
|
|
override fun foo() {}
|
|
}
|