[Chapel Merge] Add regression test for fixed Map+FCF bug

Branch: refs/heads/main
Revision: da0944169b19e457d5a2511829c039b26bef1e74
Author: DanilaFe
Link: Add regression test for fixed Map+FCF bug by DanilaFe · Pull Request #28844 · chapel-lang/chapel · GitHub
Log Message:
Add regression test for fixed Map+FCF bug (#28844)

Closes Internal error using first class functions in map · Issue #18736 · chapel-lang/chapel · GitHub.

The program in question simply does not cause errors anymore, and works
as intended. So, add a regression test and close the issue.

Trivial; will not be reviewed.

Compare: Comparing 2ca26260e113551de4e85f2b42448cc122d63d16...d18d486d1cd4a63f73f02d4e983852f2f9477258 · chapel-lang/chapel · GitHub

Diff:
A test/library/standard/Map/issue-18736.chpl
A test/library/standard/Map/issue-18736.good
https://github.com/chapel-lang/chapel/pull/28844.diff