[AA] add more tests on property accessors
^KT-54311
This commit is contained in:
committed by
Space Team
parent
6bf1cefba6
commit
3c43416042
+21
@@ -0,0 +1,21 @@
|
||||
annotation class PropertyAnnotation
|
||||
annotation class FieldAnnotation
|
||||
annotation class GetAnnotation
|
||||
annotation class SetAnnotation
|
||||
annotation class SetparamAnnotation
|
||||
annotation class ExplicitGetAnnotation
|
||||
annotation class ExplicitSetAnnotation
|
||||
annotation class ExplicitSetparamAnnotation
|
||||
|
||||
@property:PropertyAnnotation
|
||||
@field:FieldAnnotation
|
||||
@get:GetAnnotation
|
||||
@set:SetAnnotation
|
||||
@setparam:SetparamAnnotation
|
||||
var x: Int = 0
|
||||
@ExplicitGetAnnotation
|
||||
ge<caret>t() = field
|
||||
@ExplicitSetAnnotation
|
||||
set(@ExplicitSetparamAnnotation value) {
|
||||
field = value
|
||||
}
|
||||
Reference in New Issue
Block a user