Skip to content

Commit 02e20d1

Browse files
author
Pablo Orgaz
committed
Fix incorrect argument type
1 parent efd83e0 commit 02e20d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mini-runtime/src/main/java/mini/MiniRuntime.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ object MiniRuntime : MiniInitializer {
1616
if (fn.parameters.size != 2) { //param 0 is `this`
1717
throw IllegalArgumentException("Function should have 1 argument for action")
1818
}
19-
val actionType = fn.parameters[0].type.jvmErasure
19+
val actionType = fn.parameters[1].type.jvmErasure
2020
val priority = annotation!!.priority
2121
dispatcher.register(clazz = actionType, priority = priority, callback = {
2222
fn.call(store, it)

0 commit comments

Comments
 (0)