[Chapel Merge] Check conflicting imported symbol names in Dyno sc

Branch: refs/heads/main
Revision: e88f789
Author: riftEmber
Link: Check conflicting imported symbol names in Dyno scope-resolver by riftEmber · Pull Request #20806 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #20806 from riftEmber/use-name-conflict

Check conflicting imported symbol names in Dyno scope-resolver

Updates the Dyno scope-resolver to search for a name in all use/imports, not just the first one that matches, so that name conflicts between imported symbols can be detected.

Resolves https://github.com/Cray/chapel-private/issues/3903.

[reviewed by @DanilaFe]

Testing: