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

14 lines
208 B
Kotlin

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