mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
9 lines
216 B
Kotlin
Vendored
9 lines
216 B
Kotlin
Vendored
var status: String = "fail" // global property to avoid issues with accessing closure from local class (KT-4174)
|
|
|
|
fun box(): String {
|
|
class C() : JavaClass({status = "OK"}) {}
|
|
C().run()
|
|
return status
|
|
}
|
|
|