CLI: support -language-version option in cli runner
This commit is contained in:
committed by
Space Team
parent
30131e289f
commit
6f8049ffd3
@@ -192,6 +192,18 @@ class LauncherScriptTest : TestCaseWithTmpdir() {
|
||||
)
|
||||
}
|
||||
|
||||
fun testRunnerExpressionLanguageVersion20() {
|
||||
runProcess(
|
||||
"kotlin",
|
||||
"-language-version", "2.0", "-e",
|
||||
"println(args.joinToString())",
|
||||
"-a",
|
||||
"b",
|
||||
expectedStdout = "-a, b\n",
|
||||
expectedStderr = "warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features\n"
|
||||
)
|
||||
}
|
||||
|
||||
fun testCommandlineProcessing() {
|
||||
runProcess(
|
||||
"kotlin",
|
||||
|
||||
Reference in New Issue
Block a user