mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
28 lines
531 B
Kotlin
Vendored
28 lines
531 B
Kotlin
Vendored
annotation class AllOpen
|
|
|
|
@AllOpen
|
|
abstract class Base_ShouldBeOpen {
|
|
fun baseMethod() {}
|
|
}
|
|
|
|
open class BaseImpl : Base_ShouldBeOpen() {
|
|
fun baseImplMethod_ShouldBeOpen() {}
|
|
}
|
|
|
|
class BaseImpl2_ShouldBeOpen : BaseImpl() {
|
|
fun baseImpl2Method_ShouldBeOpen() {}
|
|
val baseImpl2Property_ShouldBeOpen = ""
|
|
}
|
|
|
|
@AllOpen
|
|
interface Intf {
|
|
fun intfMethod() {}
|
|
}
|
|
|
|
open class IntfImpl : Intf {
|
|
fun intfImplMethod_ShouldBeOpen() {}
|
|
}
|
|
|
|
class IntfImpl2_ShouldBeOpen : IntfImpl() {
|
|
fun intfImpl2Method_ShouldBeOpen() {}
|
|
} |