[Chapel Merge] Add a .future for issue #13159

Branch: refs/heads/main
Revision: e286a27
Author: daviditen
Link: Add a .future for issue #13159 by daviditen · Pull Request #18586 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #18586 from daviditen/issue-13159-future

Add a .future for issue #13159

[test change only]

Add a .future that has a user-defined class initializer and wants to give
a member type variable a default value at its declaration point.

It fails because we don't generate init methods when there are any
user-defined init methods, but we try to call one with an argument for each
generic field anyway.

Signed-off-by: David Iten daviditen@users.noreply.github.com

Modified Files:
A test/classes/initializers/defaultTypeVariable.bad

A test/classes/initializers/defaultTypeVariable.chpl
A test/classes/initializers/defaultTypeVariable.future
A test/classes/initializers/defaultTypeVariable.good

Compare: https://github.com/chapel-lang/chapel/compare/6a6ad1f8041a...e286a272449a