Fix kotlin.annotation.Target's kdoc

The original sentence was incorrect because it did not exclude type
aliases
This commit is contained in:
Alexander Udalov
2018-01-10 17:42:49 +01:00
parent 616ba1fbe4
commit 28c77bfb01
@@ -16,6 +16,8 @@
package kotlin.annotation package kotlin.annotation
import kotlin.annotation.AnnotationTarget.*
/** /**
* Contains the list of code elements which are the possible annotation targets * Contains the list of code elements which are the possible annotation targets
*/ */
@@ -70,8 +72,8 @@ public enum class AnnotationRetention {
/** /**
* This meta-annotation indicates the kinds of code elements which are possible targets of an annotation. * This meta-annotation indicates the kinds of code elements which are possible targets of an annotation.
* *
* If the target meta-annotation is not present on an annotation declaration, the annotation * If the target meta-annotation is not present on an annotation declaration, the annotation is applicable to the following elements:
* is applicable to any code element, except type parameters, type usages, expressions, and files. * [CLASS], [PROPERTY], [FIELD], [LOCAL_VARIABLE], [VALUE_PARAMETER], [CONSTRUCTOR], [FUNCTION], [PROPERTY_GETTER], [PROPERTY_SETTER].
* *
* @property allowedTargets list of allowed annotation targets * @property allowedTargets list of allowed annotation targets
*/ */