[Chapel Merge] Fix a .bad mismatch

Branch: refs/heads/master
Revision: bffb19b
Author: vasslitvinov
Log Message:

Merge pull request #17162 from vasslitvinov/fix-.bad-failure

Fix a .bad mismatch

Compiler code added #17114 did not account for a corner case
where typeInfo() got invoked on a DefExpr, resulting in .bad mismatch in

With this change, that case is handled properly.

Trivial, not reviewed.

Modified Files:
M compiler/resolution/preFold.cpp

Compare: Comparing 4b494edf4a08...bffb19b26677 · chapel-lang/chapel · GitHub