[Chapel Merge] Add a future for issue 7772

Branch: refs/heads/main
Revision: ebd598e
Author: mppf
Link: Unavailable
Log Message:

Merge pull request #19700 from mppf/future-7772

Add a future for issue 7772

Adds a future for issue #7772 and a test from it that is now working.

Test change only - not reviewed.

Modified Files:
A test/types/typeFunctions/return-domain.chpl

A test/types/typeFunctions/return-domain.good
A test/types/typeFunctions/return-runtime-type.chpl
A test/types/typeFunctions/return-runtime-type.future
A test/types/typeFunctions/return-runtime-type.good
A test/types/typeFunctions/return-runtime-type.skipif

Compare: https://github.com/chapel-lang/chapel/compare/15ddce567fb0...ebd598e24d5f