Value classes: Add @JvmInline annotation to stdlib
This commit is contained in:
@@ -101,7 +101,17 @@ public expect annotation class JvmSuppressWildcards(val suppress: Boolean = true
|
||||
@OptionalExpectation
|
||||
public expect annotation class JvmWildcard()
|
||||
|
||||
|
||||
/**
|
||||
* Specifies that given value class is inline class.
|
||||
*
|
||||
* Adding and removing the annotation is binary incompatible change, since inline classes' methods and functions with inline classes
|
||||
* in their signature are mangled.
|
||||
*/
|
||||
@Target(CLASS)
|
||||
@MustBeDocumented
|
||||
@SinceKotlin("1.5")
|
||||
@OptionalExpectation
|
||||
public expect annotation class JvmInline()
|
||||
|
||||
/**
|
||||
* Marks the JVM backing field of the annotated property as `volatile`, meaning that writes to this field
|
||||
|
||||
Reference in New Issue
Block a user