Add @JvmRecord annotation and relevant diagnostics
^KT-43677 In Progress
This commit is contained in:
@@ -113,6 +113,14 @@ public expect annotation class JvmWildcard()
|
||||
@OptionalExpectation
|
||||
public expect annotation class JvmInline()
|
||||
|
||||
/**
|
||||
* Instructs compiler to mark the class as a record and generate relevant toString/equals/hashCode methods
|
||||
*/
|
||||
@Target(AnnotationTarget.CLASS)
|
||||
@MustBeDocumented
|
||||
@OptionalExpectation
|
||||
public expect annotation class JvmRecord
|
||||
|
||||
/**
|
||||
* Marks the JVM backing field of the annotated property as `volatile`, meaning that writes to this field
|
||||
* are immediately made visible to other threads.
|
||||
@@ -157,4 +165,5 @@ public expect annotation class Synchronized()
|
||||
@MustBeDocumented
|
||||
@SinceKotlin("1.2")
|
||||
@OptionalExpectation
|
||||
internal expect annotation class JvmPackageName(val name: String)
|
||||
internal expect annotation class JvmPackageName(val name: String)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user