Load annotations on properties declared in traits
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
annotation class Anno
|
||||
|
||||
class Class {
|
||||
trait Trait {
|
||||
[Anno] val property: Int
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package test
|
||||
|
||||
internal final annotation class Anno : jet.Annotation {
|
||||
/*primary*/ public constructor Anno()
|
||||
}
|
||||
|
||||
internal final class Class {
|
||||
/*primary*/ public constructor Class()
|
||||
|
||||
internal trait Trait {
|
||||
test.Anno() internal abstract val property: jet.Int
|
||||
internal abstract fun <get-property>(): jet.Int
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
annotation class Anno
|
||||
|
||||
trait Trait {
|
||||
[Anno] val property: Int
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package test
|
||||
|
||||
internal final annotation class Anno : jet.Annotation {
|
||||
/*primary*/ public constructor Anno()
|
||||
}
|
||||
|
||||
internal trait Trait {
|
||||
test.Anno() internal abstract val property: jet.Int
|
||||
internal abstract fun <get-property>(): jet.Int
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package test
|
||||
|
||||
annotation class Anno
|
||||
|
||||
trait Trait {
|
||||
class object {
|
||||
[Anno] val property: Int
|
||||
get() = 42
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package test
|
||||
|
||||
internal final annotation class Anno : jet.Annotation {
|
||||
/*primary*/ public constructor Anno()
|
||||
}
|
||||
|
||||
internal trait Trait {
|
||||
|
||||
internal class object <class-object-for-Trait> {
|
||||
/*primary*/ private constructor <class-object-for-Trait>()
|
||||
test.Anno() internal final val property: jet.Int
|
||||
internal final fun <get-property>(): jet.Int
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user