[FIR] Accept opt-in annotations on primary ctor params of properties
For backward compatibility with K1. KT-56177
This commit is contained in:
committed by
Space Team
parent
cfc5bb74ef
commit
fbc0796ed2
+15
@@ -0,0 +1,15 @@
|
||||
// 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()
|
||||
Reference in New Issue
Block a user