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:
Ilya Chernikov
2023-06-15 11:48:28 +02:00
committed by Space Team
parent 020a590df7
commit 1d88c307ea
4 changed files with 13 additions and 13 deletions
@@ -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