[Chapel Merge] Add tests for cast operator overload in dyno

Branch: refs/heads/main
Revision: 8a5037f
Author: riftEmber
Link: Unavailable
Log Message:

Merge pull request #20552 from riftEmber/resolve-op-overloads

Add tests for cast operator overload in dyno

Addresses first part of #20488.

As mentioned on that issue only a non-method overload of the operator currently works. The other versions (as primary and secondary methods) currently fail; test cases for them are present but commented out.

[Reviewed by @mppf and @DanilaFe]

Modified Files:
A compiler/dyno/test/resolution/testOperatorOverloads.cpp

M compiler/dyno/test/resolution/CMakeLists.txt

Compare: https://github.com/chapel-lang/chapel/compare/4ca6aa140342...8a5037f56f3a