New Issue: Bad error message for malformed 'maxloc' reduce

28172, "jabraham17", "Bad error message for malformed 'maxloc' reduce", "2025-12-10T01:15:48Z"

I mistakenly wrote the following code

var arr: [1..10] int;

var (val, idx) = maxloc reduce (arr, arr.domain);
writeln("Max value ", val, " at index ", idx);

This is an error, the RHS of reduce needs to be an iterator yielding tuples, not a tuple of iterators. So the correct code is maxloc reduce zip(arr, arr.domain).

However, the error message for the above is just this, which gives me no insight as to why things have gone wrong and how to fix it

$CHPL_HOME/modules/internal/ChapelIteratorSupport.chpl:74: error: unable to resolve return type