K2 Scripting tests: adding tests on script decls visibility

fixes (makes it stable) behavior of the script top-level declarations
visibility in K2 scripts
This commit is contained in:
Ilya Chernikov
2023-12-21 17:28:52 +01:00
committed by Space Team
parent e5a6900458
commit cdf4b17052
14 changed files with 311 additions and 93 deletions
@@ -0,0 +1,12 @@
// FILE: script1.kts
val a = 42
// FILE: script2.kts
val a = "42"
// FILE: main.kt
fun foo() = <!OVERLOAD_RESOLUTION_AMBIGUITY!>a<!>