Files
kotlin-fork/compiler/testData/codegen/box/delegatedProperty/getAsExtensionFunInClass.kt
T
2013-04-30 21:47:22 +04:00

12 lines
181 B
Kotlin

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