Merge pull request #17767 from bradcray/dmapped-better-error
Improve error message for applying 'dmapped' to an illegal expression type
[reviewed by @vasslitvinov]
This PR adds an error overload for the case when a user applies a
dmapped clause to something other than a domain. Previously, this led to a confusing error message that said more about the internal implementation than was useful.
While here, I also noticed that we had the ability to apply
dmapped to a tuple of ranges, yet this is not a feature that is documented in the spec or seems to be used in testing, so I removed that support. This also made for a simpler error message describing the cases that are supported.
Modified Files: A test/distributions/errors/dmapRange.chpl