K2 Scripting: fix locality of script declarations
the script declarations are considered public, at least because they can be reused from another script then used with the `importedScripts` configuration property. It also improves the compatibility with K1 scripting.
This commit is contained in:
committed by
Space Team
parent
020a590df7
commit
1d88c307ea
+1
-1
@@ -205,7 +205,7 @@ class MainKtsTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testScriptFileLocationWithImportedScript() = expectTestToFailOnK2 {
|
||||
fun testScriptFileLocationWithImportedScript() {
|
||||
val resOk = evalFile(File("$TEST_DATA_ROOT/script-file-location-with-imported-file.main.kts"))
|
||||
assertSucceeded(resOk)
|
||||
val resultValue = resOk.valueOrThrow().returnValue
|
||||
|
||||
Reference in New Issue
Block a user