Generate bytecode for delegated properties
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user