In SeqType.coerce coercion is skipped, if an instance test succeeds. But in case of a function item, this also skips coercion of the arguments, which may still be necessary.
This change calculates whether there is any non-item()* argument, and enforces coercion in case there is.
The corresponding QT4 test cases are enum-024 and FunctionCall-058, these now produce the expected result.
In
SeqType.coerce
coercion is skipped, if an instance test succeeds. But in case of a function item, this also skips coercion of the arguments, which may still be necessary.This change calculates whether there is any non-
item()*
argument, and enforces coercion in case there is.The corresponding QT4 test cases are
enum-024
andFunctionCall-058
, these now produce the expected result.