Create proper annotation descriptors when annotation arguments don't match

This commit is contained in:
Andrey Breslav
2013-09-22 14:49:05 +04:00
parent 3d754dd788
commit 836eef67fa
5 changed files with 32 additions and 5 deletions
@@ -1,8 +1,8 @@
package test
[ERROR : Unresolved annotation type]() internal val SomeObject: test.SomeObject
[ERROR : Unresolved annotation type: BadAnnotation]() internal val SomeObject: test.SomeObject
internal val some: test.SomeObject
[ERROR : Unresolved annotation type]() internal object SomeObject {
[ERROR : Unresolved annotation type: BadAnnotation]() internal object SomeObject {
/*primary*/ private constructor SomeObject()
}
@@ -0,0 +1,8 @@
package test
BadAnnotation(1)
object SomeObject
val some = SomeObject
annotation class BadAnnotation(s: String)
@@ -0,0 +1,12 @@
package test
test.BadAnnotation(s = 1.toInt(): jet.Int) internal val SomeObject: test.SomeObject
internal val some: test.SomeObject
internal final annotation class BadAnnotation : jet.Annotation {
/*primary*/ public constructor BadAnnotation(/*0*/ s: jet.String)
}
test.BadAnnotation(s = 1.toInt(): jet.Int) internal object SomeObject {
/*primary*/ private constructor SomeObject()
}