Files
kotlin-fork/compiler/testData/codegen/properties/syntheticMethod/inTrait.kt
T
Alexander Udalov 08bc67b925 Generate synthetic methods for annotated properties in TImpl classes
Traits themselves can't have these methods, since it'd be a weird public method
in an interface

 #KT-4072 Fixed
2013-10-16 15:02:37 +04:00

8 lines
175 B
Kotlin

import java.lang.annotation.*
Retention(RetentionPolicy.RUNTIME) annotation class SomeAnnotation(val value: String)
trait T {
[SomeAnnotation("OK")] val property: Int
}