Add @SinceKotlin("1.5") on JvmRecord annotation
This commit is contained in:
+2
-1
@@ -7,5 +7,6 @@ This mode is not recommended for production use,
|
|||||||
as no stability/compatibility guarantees are given on
|
as no stability/compatibility guarantees are given on
|
||||||
compiler or generated code. Use it at your own risk!
|
compiler or generated code. Use it at your own risk!
|
||||||
|
|
||||||
error: -XXLanguage:+JvmRecordSupport feature is only supported with JVM target 15_PREVIEW or later
|
warning: language version 1.5 is experimental, there are no backwards compatibility guarantees for new language and library features
|
||||||
|
error: -XXLanguage:+JvmRecordSupport feature is only supported with JVM target 15 or later
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// !API_VERSION: 1.5
|
||||||
// !LANGUAGE: +JvmRecordSupport
|
// !LANGUAGE: +JvmRecordSupport
|
||||||
// JVM_TARGET: 15_PREVIEW
|
// JVM_TARGET: 15_PREVIEW
|
||||||
// FILE: JavaClass.java
|
// FILE: JavaClass.java
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// !API_VERSION: 1.5
|
||||||
// !LANGUAGE: +JvmRecordSupport
|
// !LANGUAGE: +JvmRecordSupport
|
||||||
// JVM_TARGET: 15_PREVIEW
|
// JVM_TARGET: 15_PREVIEW
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// !API_VERSION: 1.5
|
||||||
// !LANGUAGE: +JvmRecordSupport
|
// !LANGUAGE: +JvmRecordSupport
|
||||||
// SKIP_TXT
|
// SKIP_TXT
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// !API_VERSION: 1.5
|
||||||
// !LANGUAGE: -JvmRecordSupport
|
// !LANGUAGE: -JvmRecordSupport
|
||||||
// SKIP_TXT
|
// SKIP_TXT
|
||||||
// FILE: JRecord.java
|
// FILE: JRecord.java
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// !API_VERSION: 1.5
|
||||||
// !LANGUAGE: +JvmRecordSupport
|
// !LANGUAGE: +JvmRecordSupport
|
||||||
// SKIP_TXT
|
// SKIP_TXT
|
||||||
|
|
||||||
|
|||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// !API_VERSION: 1.5
|
||||||
// !LANGUAGE: +JvmRecordSupport
|
// !LANGUAGE: +JvmRecordSupport
|
||||||
|
|
||||||
<!NON_DATA_CLASS_JVM_RECORD!>@JvmRecord<!>
|
<!NON_DATA_CLASS_JVM_RECORD!>@JvmRecord<!>
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// !API_VERSION: 1.5
|
||||||
// !LANGUAGE: +JvmRecordSupport
|
// !LANGUAGE: +JvmRecordSupport
|
||||||
// FILE: MyRecord.java
|
// FILE: MyRecord.java
|
||||||
public record MyRecord(int x, CharSequence y) {
|
public record MyRecord(int x, CharSequence y) {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// !API_VERSION: 1.5
|
||||||
// !LANGUAGE: +JvmRecordSupport
|
// !LANGUAGE: +JvmRecordSupport
|
||||||
|
|
||||||
abstract class Abstract
|
abstract class Abstract
|
||||||
|
|||||||
+1
@@ -1,4 +1,5 @@
|
|||||||
// !LANGUAGE: +JvmRecordSupport
|
// !LANGUAGE: +JvmRecordSupport
|
||||||
|
// !API_VERSION: 1.5
|
||||||
// SKIP_TXT
|
// SKIP_TXT
|
||||||
|
|
||||||
@JvmRecord
|
@JvmRecord
|
||||||
|
|||||||
+1
@@ -1,4 +1,5 @@
|
|||||||
// !LANGUAGE: +JvmRecordSupport
|
// !LANGUAGE: +JvmRecordSupport
|
||||||
|
// !API_VERSION: 1.5
|
||||||
// SKIP_TXT
|
// SKIP_TXT
|
||||||
|
|
||||||
<!JVM_RECORD_REQUIRES_JDK15!>@JvmRecord<!>
|
<!JVM_RECORD_REQUIRES_JDK15!>@JvmRecord<!>
|
||||||
|
|||||||
@@ -119,6 +119,7 @@ public expect annotation class JvmInline()
|
|||||||
@Target(AnnotationTarget.CLASS)
|
@Target(AnnotationTarget.CLASS)
|
||||||
@MustBeDocumented
|
@MustBeDocumented
|
||||||
@OptionalExpectation
|
@OptionalExpectation
|
||||||
|
@SinceKotlin("1.5")
|
||||||
public expect annotation class JvmRecord
|
public expect annotation class JvmRecord
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -166,4 +167,3 @@ public expect annotation class Synchronized()
|
|||||||
@SinceKotlin("1.2")
|
@SinceKotlin("1.2")
|
||||||
@OptionalExpectation
|
@OptionalExpectation
|
||||||
internal expect annotation class JvmPackageName(val name: String)
|
internal expect annotation class JvmPackageName(val name: String)
|
||||||
|
|
||||||
|
|||||||
@@ -152,4 +152,5 @@ public actual annotation class JvmInline
|
|||||||
@Target(AnnotationTarget.CLASS)
|
@Target(AnnotationTarget.CLASS)
|
||||||
@Retention(AnnotationRetention.SOURCE)
|
@Retention(AnnotationRetention.SOURCE)
|
||||||
@MustBeDocumented
|
@MustBeDocumented
|
||||||
|
@SinceKotlin("1.5")
|
||||||
public actual annotation class JvmRecord
|
public actual annotation class JvmRecord
|
||||||
|
|||||||
Reference in New Issue
Block a user