Files
kotlin-fork/backend.native/tests/external/codegen/box/delegatedProperty/local/kt19690.kt
T
2017-11-16 17:21:48 +03:00

17 lines
275 B
Kotlin

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