Create proper annotation descriptors when annotation arguments don't match
This commit is contained in:
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user