18 lines
300 B
Kotlin
Vendored
18 lines
300 B
Kotlin
Vendored
// KJS_WITH_FULL_RUNTIME
|
|
//WITH_REFLECT
|
|
|
|
import kotlin.properties.Delegates
|
|
|
|
interface MyInterface {
|
|
fun something(): String {
|
|
var foo: String by Delegates.notNull();
|
|
foo = "OK"
|
|
return foo
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return object : MyInterface {
|
|
|
|
}.something()
|
|
} |