CLI: support -language-version option in cli runner

This commit is contained in:
Ilya Chernikov
2023-05-25 17:20:31 +02:00
committed by Space Team
parent 30131e289f
commit 6f8049ffd3
2 changed files with 88 additions and 70 deletions
@@ -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",