Files
kotlin-fork/backend.native/tests/codegen/localClass/innerWithCapture.kt
T
2017-10-20 18:25:05 +03:00

17 lines
285 B
Kotlin

package codegen.localClass.innerWithCapture
import kotlin.test.*
fun box(s: String): String {
class Local {
open inner class Inner() {
open fun result() = s
}
}
return Local().Inner().result()
}
@Test fun runTest() {
println(box("OK"))
}