Files
kotlin-fork/compiler/testData/codegen/box/inlineClasses/propertyDelegation/kt42933.kt
T
2021-09-27 17:07:39 +03:00

13 lines
236 B
Kotlin
Vendored

class Delegate {
operator fun getValue(t: Any?, p: Any): String = "OK"
}
inline class Kla1(val default: Int) {
fun getValue(): String {
val prop by Delegate()
return prop
}
}
fun box() = Kla1(1).getValue()