[FIR] Generate annotations to data class copy method parameters
#KT-57003 Fixed
This commit is contained in:
committed by
Space Team
parent
5ae3a93084
commit
0ac02be534
+19
@@ -0,0 +1,19 @@
|
||||
// FIR_IDENTICAL
|
||||
// FIR_DUMP
|
||||
|
||||
annotation class NoTarget
|
||||
|
||||
@Target(AnnotationTarget.VALUE_PARAMETER)
|
||||
annotation class Param
|
||||
|
||||
@Target(AnnotationTarget.PROPERTY)
|
||||
annotation class Prop
|
||||
|
||||
@Target(AnnotationTarget.PROPERTY, AnnotationTarget.VALUE_PARAMETER)
|
||||
annotation class Both
|
||||
|
||||
data class Foo(
|
||||
@NoTarget @Param @Prop @Both val p1: Int,
|
||||
@param:NoTarget @param:Both val p2: String,
|
||||
@property:NoTarget @property:Both val p3: Boolean,
|
||||
)
|
||||
Reference in New Issue
Block a user