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:
committed by
Mikhail Glukhikh
parent
86f35acf9e
commit
eab288bdd7
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user