IR: Allow references to script constructor in module

aso add test checking (somewhat confusing) semantic of
script nested classes.
This commit is contained in:
Ilya Chernikov
2021-08-13 19:18:34 +02:00
committed by TeamCityServer
parent e7cbc9a0fb
commit 47ea5330ff
12 changed files with 124 additions and 40 deletions
@@ -0,0 +1,14 @@
// TARGET_BACKEND: JVM
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_LIGHT_ANALYSIS
// WITH_RUNTIME
// FILE: test.kt
fun box(): String =
Script.Nested().x
// FILE: script.kts
class Nested {
val x = "OK"
}