Files
kotlin-fork/backend.native/tests/external/codegen/blackbox/jvmName/multifileClassWithLocalClass.kt
T

17 lines
312 B
Kotlin

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME
@file:JvmName("Test")
@file:JvmMultifileClass
package test
fun foo(): String = bar()
fun bar(): String {
class Local(val x: String)
return Local("OK").x
}
fun box(): String = foo()