Fix Method.invoke() signature
This commit is contained in:
+1
-1
@@ -168,7 +168,7 @@ private object ReflectClassStructure {
|
||||
annotationType: Class<*>
|
||||
) {
|
||||
for (method in annotationType.getDeclaredMethods()) {
|
||||
processAnnotationArgumentValue(visitor, Name.identifier(method.getName()), method(annotation))
|
||||
processAnnotationArgumentValue(visitor, Name.identifier(method.getName()), method(annotation)!!)
|
||||
}
|
||||
visitor.visitEnd()
|
||||
}
|
||||
|
||||
@@ -54,6 +54,6 @@ public fun <T : Annotation> T.annotationType() : Class<out T> =
|
||||
* Invokes the underlying method represented by this [Method] object, on the specified [instance] with the specified parameters.
|
||||
*/
|
||||
@Suppress("NOTHING_TO_INLINE")
|
||||
public inline fun Method.invoke(instance: Any, vararg args: Any?): Any? {
|
||||
public inline operator fun Method.invoke(instance: Any, vararg args: Any?): Any? {
|
||||
return invoke(instance, *args)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user