Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/experimental/overrideInPrimaryConstructor.kt
T
Kirill Rakhman fbc0796ed2 [FIR] Accept opt-in annotations on primary ctor params of properties
For backward compatibility with K1.

KT-56177
2023-02-28 10:19:20 +00:00

16 lines
235 B
Kotlin
Vendored

// SKIP_TXT
// FIR_IDENTICAL
@RequiresOptIn(level = RequiresOptIn.Level.ERROR)
annotation class E
abstract class Foo {
@E
abstract val bar: String
}
class SubFoo(
@OptIn(E::class)
override val bar: String,
) : Foo()