Report incorrect JVM target only when @JvmRecord is actually used
This commit is contained in:
+3
-1
@@ -8,5 +8,7 @@ as no stability/compatibility guarantees are given on
|
||||
compiler or generated code. Use it at your own risk!
|
||||
|
||||
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
|
||||
compiler/testData/cli/jvm/jvmRecord.kt:1:1: error: using @JvmRecord is only allowed with -jvm-target 15 and -Xjvm-enable-preview flag enabled
|
||||
@JvmRecord
|
||||
^
|
||||
COMPILATION_ERROR
|
||||
|
||||
Reference in New Issue
Block a user