Allow placing Suppress on a type parameter

#KT-12448
This commit is contained in:
Ilya Gorbunov
2020-04-02 07:28:36 +03:00
parent fcada0a5e3
commit 8194652793
10 changed files with 34 additions and 5 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ public annotation class ParameterName(val name: String)
* Suppresses the given compilation warnings in the annotated element.
* @property names names of the compiler diagnostics to suppress.
*/
@Target(CLASS, ANNOTATION_CLASS, PROPERTY, FIELD, LOCAL_VARIABLE, VALUE_PARAMETER,
@Target(CLASS, ANNOTATION_CLASS, TYPE_PARAMETER, PROPERTY, FIELD, LOCAL_VARIABLE, VALUE_PARAMETER,
CONSTRUCTOR, FUNCTION, PROPERTY_GETTER, PROPERTY_SETTER, TYPE, EXPRESSION, FILE, TYPEALIAS)
@Retention(SOURCE)
public annotation class Suppress(vararg val names: String)