[Chapel Merge] Make `canPass` properly handle "any enum type"

Branch: refs/heads/main
Revision: bb45845
Author: DanilaFe
Link: Unavailable
Log Message:

Merge pull request #20343 from DanilaFe/can-pass-enum

Make canPass properly handle "any enum type"

This was missing from canPass, and is required at some point
in resolving the range record from the standard library.

Reviewed by @mppf - thanks!

Signed-off-by: Danila Fedorin daniel.fedorin@hpe.com

Modified Files:
M compiler/dyno/lib/resolution/can-pass.cpp

M compiler/dyno/test/resolution/testCanPass.cpp

Compare: https://github.com/chapel-lang/chapel/compare/8ebe5783c308...bb458454d3fe