78ca733c38
except tests that are not possible to add without some modifications in the test infra. See todos on the commented-out test declarations
24 lines
440 B
Kotlin
Vendored
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
|