[Chapel Merge] Add test for code that previously resulted in an internal error

Branch: refs/heads/main
Revision: 06a29130006e9aaf1724ddd8fd4ad1f0b261fa7e
Author: jabraham17
Link: Add test for code that previously resulted in an internal error by jabraham17 · Pull Request #28742 · chapel-lang/chapel · GitHub
Log Message:
Add test for code that previously resulted in an internal error (#28742)

Adds the reproducer for
[Internal Error] PAS-NOR-IZE-2330 chpl 1.28.0/1.29.0 · Issue #21289 · chapel-lang/chapel · GitHub, which now gets a
nice error

Resolves [Internal Error] PAS-NOR-IZE-2330 chpl 1.28.0/1.29.0 · Issue #21289 · chapel-lang/chapel · GitHub

[Not reviewed - trivial]

Compare: Comparing db373276ae1e4e84e1835ad105bb56ac03866b2b...41996a4222bccdbcc105a0a9ebd62c3e9f3b468e · chapel-lang/chapel · GitHub

Diff:
A test/errors/issue-21289.chpl
A test/errors/issue-21289.good
https://github.com/chapel-lang/chapel/pull/28742.diff