Capitalize copies of JVM annotations for js stdlib
This commit is contained in:
@@ -26,11 +26,11 @@ import kotlin.InlineOption.ONLY_LOCAL_RETURN
|
||||
@native
|
||||
@Target(AnnotationTarget.PROPERTY, AnnotationTarget.FIELD)
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
public annotation class volatile
|
||||
public annotation class Volatile
|
||||
|
||||
@native
|
||||
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER)
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
public annotation class synchronized
|
||||
public annotation class Synchronized
|
||||
|
||||
public inline fun <R> synchronized(lock: Any, crossinline block: () -> R): R = block()
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package kotlin
|
||||
|
||||
private class ConstrainedOnceSequence<T>(sequence: Sequence<T>) : Sequence<T> {
|
||||
@volatile private var sequenceRef: Sequence<T>? = sequence
|
||||
@Volatile private var sequenceRef: Sequence<T>? = sequence
|
||||
//private val lock = Any()
|
||||
|
||||
//TODO: Synchronize with the synchonized() method
|
||||
|
||||
Reference in New Issue
Block a user