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:
committed by
Space Team
parent
e5a6900458
commit
cdf4b17052
Vendored
+28
@@ -0,0 +1,28 @@
|
||||
|
||||
// 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()
|
||||
Reference in New Issue
Block a user