diff --git a/compiler/tests/org/jetbrains/kotlin/cli/CustomCliTest.kt b/compiler/tests/org/jetbrains/kotlin/cli/CustomCliTest.kt index 81efb4fef02..1c7201ff2ec 100644 --- a/compiler/tests/org/jetbrains/kotlin/cli/CustomCliTest.kt +++ b/compiler/tests/org/jetbrains/kotlin/cli/CustomCliTest.kt @@ -106,7 +106,8 @@ class CustomCliTest : TestCaseWithTmpdir() { private fun compileAndCheckMainClass(sourceFiles: List, expectedMainClass: String?) { val jarFile = tmpdir.resolve("output.jar") - val args = listOf("-include-runtime", "-d", jarFile.absolutePath) + sourceFiles.map { it.absolutePath } + // TODO: remove explicit verion after implementing main fun detector (KT-44557) + val args = listOf("-language-version", "1.9", "-include-runtime", "-d", jarFile.absolutePath) + sourceFiles.map { it.absolutePath } CompilerTestUtil.executeCompilerAssertSuccessful(K2JVMCompiler(), args) JarFile(jarFile).use {