Annotations on type aliases: typealias is not a "default target".

Add diagnostic test for annotations on type aliases.
This commit is contained in:
Dmitry Petrov
2016-10-10 16:02:17 +03:00
parent 344bb03e8c
commit d2d8f72ffc
13 changed files with 62 additions and 10 deletions
@@ -1,6 +1,7 @@
//ALLOW_AST_ACCESS
package test
@Target(AnnotationTarget.TYPEALIAS)
annotation class Ann(val value: String = "")
@Ann()
@@ -1,6 +1,6 @@
package test
public final annotation class Ann : kotlin.Annotation {
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.TYPEALIAS}) 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