[Chapel Merge] Revert "Move resolveSpecifiedReturnType()"

Branch: refs/heads/master
Revision: 14de026
Author: lydia-duncan
Log Message:

Merge pull request #17530 from lydia-duncan/revertChange

Revert "Move resolveSpecifiedReturnType()"
[reviewed by @vasslitvinov]

This reverts commit 2224ca95075a6d1b070b69cbed9a7e6467c83aba.

This commit caused an exceedingly large amount of errors of the form: "error:
'param' functions cannot return non-'param' values" for two tests of the Version
module, library/standard/Version/compareChplVersion.chpl and
library/standard/Version/compareChplVersionErrors.chpl when merged onto my
operators branch. Since the original PR itself was uncertain of why the code
was in the previous state, it made sense to just undo the change.

Discussed with Vass, who made the original PR.

Passed a full paratest with futures

Modified Files:
M compiler/resolution/ResolutionCandidate.cpp

Compare: https://github.com/chapel-lang/chapel/compare/829830240506...14de026b6b05