[Chapel Merge] Add regression tests for #13540

Branch: refs/heads/main
Revision: 1c71f5909bc16a4da24352fb96ccf311f2ffecb3
Author: DanilaFe
Link: Add regression tests for #13540 by DanilaFe · Pull Request #25563 · chapel-lang/chapel · GitHub
Log Message:
Add regression tests for #13540 (#25563)

The 'design' aspect of the issue is not resolved, but the 'bug' aspect
is. These tests lock in that it's possible to write a generic,
nilable-specific class, but a separate discussion should probably be had
about which we prefer (first, second, both).

Trivial, will not be reviewed.

Testing

  • new tests pass

Compare: Comparing f5b6ebc151bbcc81a9e595cd98a754b5fe0ace33...0282ee8e68bf4d57060ccc5f95fc601d0740973f · chapel-lang/chapel · GitHub

Diff:
A test/classes/generic/explicit-generic-nilable-prefix.chpl
A test/classes/generic/explicit-generic-nilable-prefix.good
A test/classes/generic/explicit-generic-nilable-suffix.chpl
A test/classes/generic/explicit-generic-nilable-suffix.good
https://github.com/chapel-lang/chapel/pull/25563.diff