Files
kotlin-fork/compiler/testData/codegen/box/reflection/classes/nestedClassesInScript.kt
T
Ilya Chernikov 78ca733c38 FIR JS: add K2 variants of all other JS tests
except tests that are not possible to add without some modifications in
the test infra. See todos on the commented-out test declarations
2022-11-12 16:28:24 +01:00

24 lines
440 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
// FIR status: scripts aren't supported yet
// IGNORE_LIGHT_ANALYSIS
// WITH_STDLIB
// WITH_REFLECT
// FILE: test.kt
fun box(): String {
val kClass = Script::class
val nestedClasses = kClass.nestedClasses
val nestedClass = nestedClasses.single()
return nestedClass.simpleName!!
}
// FILE: Script.kts
class OK
typealias Tazz = List<OK>
val x: Tazz = listOf()
x