refactoring and reducing complexity
This commit is contained in:
parent
3b71fda264
commit
b7c99eec42
@ -51,7 +51,7 @@ final class PbsFlowTypeOps {
|
|||||||
case OPTIONAL -> compatible(actual.inner(), expected.inner());
|
case OPTIONAL -> compatible(actual.inner(), expected.inner());
|
||||||
case RESULT -> compatible(actual.errorType(), expected.errorType()) && compatible(actual.inner(), expected.inner());
|
case RESULT -> compatible(actual.errorType(), expected.errorType()) && compatible(actual.inner(), expected.inner());
|
||||||
case TUPLE -> tupleCompatible(actual, expected);
|
case TUPLE -> tupleCompatible(actual, expected);
|
||||||
case UNKNOWN -> true;
|
default -> throw new IllegalStateException("Unexpected value: " + actual.kind());
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user