Branch: refs/heads/master
Revision: 1f3bfc5
Author: bradcray
Log Message:
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
A test/distributions/errors/dmapRange.good
M modules/internal/ChapelArray.chpl
Compare: https://github.com/chapel-lang/chapel/compare/5b8ecb3574e1...1f3bfc562f6e