Load annotations on properties declared in traits

This commit is contained in:
Alexander Udalov
2013-10-16 21:49:27 +04:00
parent 5a1daaa4b6
commit b7789da3b9
21 changed files with 204 additions and 53 deletions
@@ -0,0 +1,9 @@
package test
annotation class Anno
class Class {
trait Trait {
[Anno] val property: Int
}
}
@@ -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
}
@@ -0,0 +1,10 @@
package test
annotation class Anno
trait Trait {
class object {
[Anno] val property: Int
get() = 42
}
}
@@ -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
}
}