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
This commit is contained in:
Alexander Udalov
2013-10-15 22:25:24 +04:00
parent 5539a29439
commit 08bc67b925
5 changed files with 83 additions and 25 deletions
@@ -0,0 +1,7 @@
import java.lang.annotation.*
Retention(RetentionPolicy.RUNTIME) annotation class SomeAnnotation(val value: String)
trait T {
[SomeAnnotation("OK")] val property: Int
}