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,25 @@
// FIR_IDENTICAL
val a = 42
class A
enum class E {
V
}
object O {
val v = 42
}
fun foo() = 42
val b = a
val ca = A()
val ev = E.V
val ov = O.v
val rfoo = foo()