Files
kotlin-fork/compiler/testData/codegen/box/delegatedProperty/local/kt19690.kt
T
2017-08-17 15:35:10 +02:00

17 lines
275 B
Kotlin
Vendored

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