Handling of annotations on delegated property in descriptor loader & stub builder
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
// ALLOW_AST_ACCESS
|
||||
|
||||
package test
|
||||
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
annotation class Anno
|
||||
|
||||
class CustomDelegate {
|
||||
operator fun getValue(thisRef: Any?, prop: KProperty<*>): String = prop.name
|
||||
}
|
||||
|
||||
class Class {
|
||||
@delegate:Anno val property by CustomDelegate()
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package test
|
||||
|
||||
public final annotation class Anno : kotlin.Annotation {
|
||||
/*primary*/ public constructor Anno()
|
||||
}
|
||||
|
||||
public final class Class {
|
||||
/*primary*/ public constructor Class()
|
||||
@delegate:test.Anno() public final val property: kotlin.String
|
||||
public final fun <get-property>(): kotlin.String
|
||||
}
|
||||
|
||||
public final class CustomDelegate {
|
||||
/*primary*/ public constructor CustomDelegate()
|
||||
public final operator fun getValue(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.reflect.KProperty<*>): kotlin.String
|
||||
}
|
||||
Reference in New Issue
Block a user