annotation() now has no arguments. Syntax migration to Retention / Repeatable / MustBeDocumented combination

Deprecated test for annotation(params) completion deleted. A lot of tests changed.
This commit is contained in:
Mikhail Glukhikh
2015-09-03 18:34:48 +03:00
committed by Mikhail Glukhikh
parent 86f35acf9e
commit eab288bdd7
99 changed files with 300 additions and 187 deletions
+2 -1
View File
@@ -18,4 +18,5 @@ package kotlin.jvm
// is used in common generated code in stdlib
target(AnnotationTarget.FUNCTION, AnnotationTarget.CONSTRUCTOR)
internal annotation(retention = AnnotationRetention.SOURCE) class jvmOverloads
@Retention(AnnotationRetention.SOURCE)
internal annotation class jvmOverloads
+4 -2
View File
@@ -25,10 +25,12 @@ import kotlin.InlineOption.ONLY_LOCAL_RETURN
native
target(AnnotationTarget.PROPERTY, AnnotationTarget.FIELD)
public annotation(retention = AnnotationRetention.SOURCE) class volatile
@Retention(AnnotationRetention.SOURCE)
public annotation class volatile
native
target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER)
public annotation(retention = AnnotationRetention.SOURCE) class synchronized
@Retention(AnnotationRetention.SOURCE)
public annotation class synchronized
public inline fun <R> synchronized(lock: Any, @inlineOptions(ONLY_LOCAL_RETURN) block: () -> R): R = block()