[chapel-lang/chapel] Do a dummy iteration to work around a resolution b

Branch: refs/heads/master
Revision: af05290
Author: e-kayrakli
Log Message:

Merge pull request #16337 from e-kayrakli/string-resolution-order-fix

Do a dummy iteration to work around a resolution bug


removed a function that called string.find which has a pattern that iterates
over a range variable. This was probably the first time that the compiler
encounters this pattern and resolved range.these.

After that function is removed we had issues with resolving
chpl_debug_writeln. So, this PR adds that pattern right before a string to int
cast to have the same behavior in terms of resolution order.

https://github.com/Cray/chapel-private/issues/1293 has some of the similar
issues to fix. This work around should be reverted once we have (maybe partly)
addressed the problem.

[Reviewed by @mppf]

Test:

  • [x] standard release/examples

Modified Files:
M modules/internal/ChapelBase.chpl

Compare: https://github.com/chapel-lang/chapel/compare/77c6d70dd717...af05290c4735