JvmDefault. Add deprecation warning for '-Xjvm-default=enable|compatibility' options

#KT-46329
This commit is contained in:
Mikhael Bogdanov
2021-12-02 16:01:06 +01:00
committed by Alexander Udalov
parent 42a465efe2
commit 8f60f73207
9 changed files with 42 additions and 1 deletions
@@ -0,0 +1,4 @@
$TESTDATA_DIR$/jvmDefaultAll.kt
-d
$TEMP_DIR$
-Xjvm-default=compatibility
+4
View File
@@ -0,0 +1,4 @@
interface Foo {
@JvmDefault
fun test() {}
}
+2
View File
@@ -0,0 +1,2 @@
warning: '-Xjvm-default=compatibility' is deprecated, please use '-Xjvm-default=all|all-compatibility'
OK
+4
View File
@@ -0,0 +1,4 @@
$TESTDATA_DIR$/jvmDefaultAll.kt
-d
$TEMP_DIR$
-Xjvm-default=enable
+4
View File
@@ -0,0 +1,4 @@
interface Foo {
@JvmDefault
fun test() {}
}
+2
View File
@@ -0,0 +1,2 @@
warning: '-Xjvm-default=enable' is deprecated, please use '-Xjvm-default=all|all-compatibility'
OK