Skip to content

Commit eaec458

Browse files
LlamaLad7Earthcomputer
authored andcommitted
Fix: Fix @Coerce on return type wanting subtypes not supertypes.
1 parent ae7224b commit eaec458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/platform/mixin/inspection/injector/InvalidInjectorMethodSignatureInspection.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ class InvalidInjectorMethodSignatureInspection : MixinInspection() {
248248
if (expectedReturnType is PsiPrimitiveType || methodReturnType is PsiPrimitiveType) {
249249
return false
250250
}
251-
return isAssignable(expectedReturnType, methodReturnType)
251+
return isAssignable(methodReturnType, expectedReturnType)
252252
}
253253

254254
private fun checkParameters(

0 commit comments

Comments
 (0)