Report error if IR is enabled with incorrect language version

^KT-36338 Fixed
This commit is contained in:
Pavel Kirpichenkov
2020-02-03 16:34:48 +03:00
parent feccf9cc1b
commit fee72839bf
14 changed files with 108 additions and 0 deletions
@@ -0,0 +1,8 @@
$TESTDATA_DIR$/simple.kt
-d
$TEMP_DIR$
-language-version
1.3
-api-version
1.2
-Xuse-ir
+3
View File
@@ -0,0 +1,3 @@
warning: API version 1.2 is deprecated and its support will be removed in a future version of Kotlin
error: IR backend cannot be used with language or API version below 1.3
COMPILATION_ERROR
@@ -0,0 +1,6 @@
$TESTDATA_DIR$/simple.kt
-d
$TEMP_DIR$
-language-version
1.2
-Xuse-ir
@@ -0,0 +1,3 @@
warning: language version 1.2 is deprecated and its support will be removed in a future version of Kotlin
error: IR backend cannot be used with language or API version below 1.3
COMPILATION_ERROR
+8
View File
@@ -0,0 +1,8 @@
$TESTDATA_DIR$/simple.kt
-d
$TEMP_DIR$
-language-version
1.3
-api-version
1.3
-Xuse-ir
+1
View File
@@ -0,0 +1 @@
OK