Files
kotlin-fork/compiler/testData/codegen/box/delegatedProperty/local/kt19690.kt
T
2020-04-09 15:22:55 +03:00

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()
}