Support annotations on type aliases declarations

This commit is contained in:
Denis Zharkov
2016-06-27 19:01:00 +03:00
parent e24f0653fb
commit d53c53a900
19 changed files with 686 additions and 24 deletions
@@ -0,0 +1,9 @@
//ALLOW_AST_ACCESS
package test
annotation class Ann(val value: String = "")
@Ann()
typealias A1 = String
@Ann("OK")
typealias A2 = String
@@ -0,0 +1,10 @@
package test
@test.Ann() public typealias A1 = kotlin.String
@test.Ann(value = "OK") public typealias A2 = kotlin.String
public final annotation class Ann : kotlin.Annotation {
/*primary*/ public constructor Ann(/*0*/ value: kotlin.String = ...)
public final val value: kotlin.String
public final fun <get-value>(): kotlin.String
}