Introduce language version 2.0 and associate K2 compiler with it
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-Xuse-k2
|
||||
-language-version
|
||||
2.0
|
||||
-Xcompiler-plugin=dist/kotlinc/lib/allopen-compiler-plugin.jar=annotation=foo.AllOpen
|
||||
$TESTDATA_DIR$/firAllOpenPlugin.kt
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
|
||||
warning: argument -Xcompiler-plugin is experimental
|
||||
warning: ATTENTION!
|
||||
This build uses experimental K2 compiler:
|
||||
-Xuse-k2
|
||||
OK
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-Xcompiler-plugin=dist/kotlinc/lib/noarg-compiler-plugin.jar=annotation=foo.NoArg
|
||||
-Xuse-k2
|
||||
|
||||
-language-version
|
||||
2.0
|
||||
-Xplugin=dist/kotlinc/lib/allopen-compiler-plugin.jar
|
||||
-P
|
||||
plugin\:org.jetbrains.kotlin.allopen\:annotation=foo.AllOpen
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
|
||||
error: mixing legacy and modern plugin arguments is prohibited. Please use only one syntax
|
||||
Legacy arguments:
|
||||
-Xplugin=dist/kotlinc/lib/allopen-compiler-plugin.jar
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-Xuse-k2
|
||||
-language-version
|
||||
2.0
|
||||
-Xcompiler-plugin=dist/kotlinc/lib/allopen-compiler-plugin.jar=annotation=foo.AllOpen1,annotation=foo.AllOpen2
|
||||
$TESTDATA_DIR$/multipleOptionsForOnePlugin.kt
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
|
||||
warning: argument -Xcompiler-plugin is experimental
|
||||
warning: ATTENTION!
|
||||
This build uses experimental K2 compiler:
|
||||
-Xuse-k2
|
||||
OK
|
||||
|
||||
+2
-1
@@ -1,6 +1,7 @@
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-Xuse-k2
|
||||
-language-version
|
||||
2.0
|
||||
-Xcompiler-plugin=dist/kotlinc/lib/allopen-compiler-plugin.jar=annotation=foo.AllOpen
|
||||
-Xcompiler-plugin=dist/kotlinc/lib/noarg-compiler-plugin.jar=annotation=foo.NoArg
|
||||
$TESTDATA_DIR$/multiplePlugins.kt
|
||||
|
||||
+1
-3
@@ -1,6 +1,4 @@
|
||||
warning: ATTENTION!
|
||||
This build uses experimental K2 compiler:
|
||||
-Xuse-k2
|
||||
warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
|
||||
compiler/testData/cli/jvm/plugins/multiplePlugins.kt:11:17: error:
|
||||
inner class Inner(val s: String)
|
||||
^
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-Xuse-k2
|
||||
-language-version
|
||||
2.0
|
||||
-Xcompiler-plugin=dist/kotlinc/lib/allopen-compiler-plugin.jar,dist/kotlinc/lib/noarg-compiler-plugin.jar=annotation=foo.AllOpen
|
||||
$TESTDATA_DIR$/multiplePluginsInSameArg.kt
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
|
||||
error: multiple plugins found in given classpath: org.jetbrains.kotlin.allopen.AllOpenComponentRegistrar, org.jetbrains.kotlin.noarg.NoArgComponentRegistrar
|
||||
Plugin configuration is: dist/kotlinc/lib/allopen-compiler-plugin.jar,dist/kotlinc/lib/noarg-compiler-plugin.jar=annotation=foo.AllOpen
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-Xuse-k2
|
||||
-language-version
|
||||
2.0
|
||||
-Xcompiler-plugin=dist/kotlinc/lib/kotlin-reflect.jar
|
||||
$TESTDATA_DIR$/noPluginInClasspath.kt
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
|
||||
error: no plugins found in given classpath: dist/kotlinc/lib/kotlin-reflect.jar
|
||||
COMPILATION_ERROR
|
||||
|
||||
Reference in New Issue
Block a user