Files
kotlin/compiler/testData/codegen/box/delegatedProperty/getAsExtensionFunInClass.kt

12 lines
191 B
Kotlin

class Delegate {
}
class A {
fun Delegate.get(t: Any?, p: PropertyMetadata): Int = 1
val prop: Int by Delegate()
}
fun box(): String {
return if(A().prop == 1) "OK" else "fail"
}