Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/scripts/scriptDeclsShouldBeVisibleFromOtherSources.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

29 lines
201 B
Kotlin
Vendored

// FILE: script.kts
val a = 42
class A
enum class E {
V
}
object O {
val v = 42
}
fun foo() = 42
// FILE: main.kt
val b = a
val ca = A()
val ev = E.V
val ov = O.v
val rfoo = foo()