Files
kotlin-fork/compiler/testData/diagnostics/tests/annotations/options/targets/classifier.fir.kt
T

22 lines
452 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
@Target(AnnotationTarget.CLASS) annotation class base
@base annotation class derived
@base class correct(@base val x: Int, @base w: @base Int) {
@base constructor(): this(0, 0)
}
@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