[AA] add test on property annotations
^KT-54311
This commit is contained in:
committed by
Space Team
parent
01d5a5bc5b
commit
2d240d2925
+19
@@ -0,0 +1,19 @@
|
||||
// WITH_STDLIB
|
||||
|
||||
annotation class PropertyAnnotation
|
||||
annotation class FieldAnnotation
|
||||
annotation class GetAnnotation
|
||||
annotation class SetAnnotation
|
||||
annotation class SetparamAnnotation
|
||||
|
||||
@property:PropertyAnnotation
|
||||
@field:FieldAnnotation
|
||||
@get:GetAnnotation
|
||||
@set:SetAnnotation
|
||||
@setparam:SetparamAnnotation
|
||||
var prop: Int = 1
|
||||
|
||||
annotation class DelegateAnnotation
|
||||
|
||||
@delegate:DelegateAnnotation
|
||||
val lazyProperty by lazy { 1 }
|
||||
Reference in New Issue
Block a user