JvmDefault. Add deprecation warning for '-Xjvm-default=enable|compatibility' options
#KT-46329
This commit is contained in:
committed by
Alexander Udalov
parent
42a465efe2
commit
8f60f73207
@@ -0,0 +1,4 @@
|
||||
$TESTDATA_DIR$/jvmDefaultAll.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-Xjvm-default=compatibility
|
||||
@@ -0,0 +1,4 @@
|
||||
interface Foo {
|
||||
@JvmDefault
|
||||
fun test() {}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
warning: '-Xjvm-default=compatibility' is deprecated, please use '-Xjvm-default=all|all-compatibility'
|
||||
OK
|
||||
@@ -0,0 +1,4 @@
|
||||
$TESTDATA_DIR$/jvmDefaultAll.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-Xjvm-default=enable
|
||||
@@ -0,0 +1,4 @@
|
||||
interface Foo {
|
||||
@JvmDefault
|
||||
fun test() {}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
warning: '-Xjvm-default=enable' is deprecated, please use '-Xjvm-default=all|all-compatibility'
|
||||
OK
|
||||
Reference in New Issue
Block a user