22 lines
427 B
Kotlin
Vendored
22 lines
427 B
Kotlin
Vendored
@Target(AnnotationTarget.FUNCTION) annotation class base
|
|
|
|
@base annotation class derived
|
|
|
|
@base class correct(@base val x: Int) {
|
|
@base constructor(): this(0)
|
|
|
|
@base public fun baz() {}
|
|
}
|
|
|
|
@base enum class My @base constructor() {
|
|
@base FIRST,
|
|
@base SECOND
|
|
}
|
|
|
|
@base fun foo(@base y: @base Int): Int {
|
|
@base fun bar(@base z: @base Int) = z + 1
|
|
@base val local = bar(y)
|
|
return local
|
|
}
|
|
|
|
@base val z = 0 |