K2 Scripting: fix order of arguments processing
and base class handling: Since in K2 we do not distinguish between script arguments taken from the base class and provided properties, we need this extra functionality to preserve the argument order of K1 scripts. This is a temporary measure, since we're going to deprecate base class usage at some point (KT-60449), so the relevant constructor arguments should disappear too.
This commit is contained in:
committed by
Space Team
parent
96bde033e1
commit
020a590df7
+2
-2
@@ -66,7 +66,7 @@ class MainKtsIT {
|
||||
|
||||
@OptIn(ExperimentalPathApi::class)
|
||||
@Test
|
||||
fun testCache() = expectTestToFailOnK2 {
|
||||
fun testCache() {
|
||||
val script = File("$TEST_DATA_ROOT/import-test.main.kts").absolutePath
|
||||
val cache = createTempDirectory("main.kts.test")
|
||||
|
||||
@@ -93,7 +93,7 @@ class MainKtsIT {
|
||||
|
||||
@OptIn(ExperimentalPathApi::class)
|
||||
@Test
|
||||
fun testCacheInProcess() = expectTestToFailOnK2 {
|
||||
fun testCacheInProcess() {
|
||||
val script = File("$TEST_DATA_ROOT/import-test.main.kts").absolutePath
|
||||
val cache = createTempDirectory("main.kts.test")
|
||||
|
||||
|
||||
+1
-1
@@ -126,7 +126,7 @@ class MainKtsTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testImport() = expectTestToFailOnK2 {
|
||||
fun testImport() {
|
||||
|
||||
val out = captureOut {
|
||||
val res = evalFile(File("$TEST_DATA_ROOT/import-test.main.kts"))
|
||||
|
||||
Reference in New Issue
Block a user