Files
kotlin-fork/compiler/testData/diagnostics/tests/script/scriptDeclsShouldVisibleLocally.kts
T
Ilya Chernikov cdf4b17052 K2 Scripting tests: adding tests on script decls visibility
fixes (makes it stable) behavior of the script top-level declarations
visibility in K2 scripts
2024-02-21 07:47:15 +00:00

26 lines
179 B
Kotlin
Vendored

// 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()