Merge pull request #18546 from lydia-duncan/nonOperatorError
Add an error if a non-operator function is declared with the operator keyword
[reviewed by @dlongnecke-cray]
We don't support defining arbitrary operators yet, so error if someone tries to
declare one until we do.
With this new error, discovered that sometimes we overload the by operator with
chpl_by and the align operator with
chpl_align so add those variations
to the list of potential operator names to check.
Update a test to use the operator keyword that had missed it, and update the
expected error message when using the
operator keyword with an unexpected
operator name so that the appropriate spacing was used. Now that those futures
pass, remove the .bad and .future files from them.
Passed a full paratest with futures
Modified Files: R test/functions/operatorOverloads/errors/namedOperator.bad