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
|
||||
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
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// !API_VERSION: 1.5
|
||||
// !LANGUAGE: +JvmRecordSupport
|
||||
// JVM_TARGET: 15_PREVIEW
|
||||
// FILE: JavaClass.java
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// !API_VERSION: 1.5
|
||||
// !LANGUAGE: +JvmRecordSupport
|
||||
// JVM_TARGET: 15_PREVIEW
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// !API_VERSION: 1.5
|
||||
// !LANGUAGE: +JvmRecordSupport
|
||||
// SKIP_TXT
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// !API_VERSION: 1.5
|
||||
// !LANGUAGE: -JvmRecordSupport
|
||||
// SKIP_TXT
|
||||
// FILE: JRecord.java
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// !API_VERSION: 1.5
|
||||
// !LANGUAGE: +JvmRecordSupport
|
||||
// SKIP_TXT
|
||||
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// !API_VERSION: 1.5
|
||||
// !LANGUAGE: +JvmRecordSupport
|
||||
|
||||
<!NON_DATA_CLASS_JVM_RECORD!>@JvmRecord<!>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// !API_VERSION: 1.5
|
||||
// !LANGUAGE: +JvmRecordSupport
|
||||
// FILE: MyRecord.java
|
||||
public record MyRecord(int x, CharSequence y) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// !API_VERSION: 1.5
|
||||
// !LANGUAGE: +JvmRecordSupport
|
||||
|
||||
abstract class Abstract
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// !LANGUAGE: +JvmRecordSupport
|
||||
// !API_VERSION: 1.5
|
||||
// SKIP_TXT
|
||||
|
||||
@JvmRecord
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// !LANGUAGE: +JvmRecordSupport
|
||||
// !API_VERSION: 1.5
|
||||
// SKIP_TXT
|
||||
|
||||
<!JVM_RECORD_REQUIRES_JDK15!>@JvmRecord<!>
|
||||
|
||||
@@ -119,6 +119,7 @@ public expect annotation class JvmInline()
|
||||
@Target(AnnotationTarget.CLASS)
|
||||
@MustBeDocumented
|
||||
@OptionalExpectation
|
||||
@SinceKotlin("1.5")
|
||||
public expect annotation class JvmRecord
|
||||
|
||||
/**
|
||||
@@ -166,4 +167,3 @@ public expect annotation class Synchronized()
|
||||
@SinceKotlin("1.2")
|
||||
@OptionalExpectation
|
||||
internal expect annotation class JvmPackageName(val name: String)
|
||||
|
||||
|
||||
@@ -152,4 +152,5 @@ public actual annotation class JvmInline
|
||||
@Target(AnnotationTarget.CLASS)
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
@MustBeDocumented
|
||||
@SinceKotlin("1.5")
|
||||
public actual annotation class JvmRecord
|
||||
|
||||
Reference in New Issue
Block a user