22 lines
436 B
Kotlin
Vendored
22 lines
436 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
@Target(AnnotationTarget.VALUE_PARAMETER) annotation class base
|
|
|
|
@base annotation class derived
|
|
|
|
@base class correct(@base val x: Int, @base w: Int) {
|
|
@base constructor(): this(0, 0)
|
|
}
|
|
|
|
@base enum class My {
|
|
@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
|