Skip to content

Commit 6616aab

Browse files
gselzerctrueden
authored andcommitted
avoid output assignability if ItemIO.BOTH output
1 parent 9005a69 commit 6616aab

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/org/scijava/ops/matcher/DefaultOpTypeMatchingService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ private boolean outputsMatch(final OpCandidate candidate, HashMap<TypeVariable<?
339339
if (refOutType == null)
340340
return true; // no constraints on output types
341341

342+
if(candidate.opInfo().output().isInput()) return true;
342343
final Type candidateOutType = OpUtils.outputType(candidate);
343344
final int conflictingIndex = MatchingUtils.checkGenericOutputsAssignability(new Type[] { candidateOutType },
344345
new Type[] { refOutType }, typeBounds);

0 commit comments

Comments
 (0)