Check target for -Xjvm-default modes

#KT-39925 Fixed
This commit is contained in:
Mikhail Bogdanov
2020-06-30 15:55:50 +02:00
parent 3e42b9d527
commit b5b5c8aebc
5 changed files with 27 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
$TESTDATA_DIR$/jvmDefaultAll.kt
-d
$TEMP_DIR$
-jvm-target
1.6
-Xjvm-default=all
+3
View File
@@ -0,0 +1,3 @@
interface Foo {
fun test() {}
}
+2
View File
@@ -0,0 +1,2 @@
error: '-Xjvm-default=all' is only supported since JVM target 1.8. Recompile with '-jvm-target 1.8'
COMPILATION_ERROR