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
+8
View File
@@ -0,0 +1,8 @@
$TESTDATA_DIR$/simple2js.kt
-Xir-produce-js
-language-version
1.4
-api-version
1.3
-output
$TEMP_DIR$/out.js
+2
View File
@@ -0,0 +1,2 @@
error: IR backend cannot be used with language or API version below 1.4
COMPILATION_ERROR
@@ -0,0 +1,6 @@
$TESTDATA_DIR$/simple2js.kt
-Xir-produce-js
-language-version
1.3
-output
$TEMP_DIR$/out.js
@@ -0,0 +1,2 @@
error: IR backend cannot be used with language or API version below 1.4
COMPILATION_ERROR