forked from chapel-lang/chapel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missing
instantiatedFrom
on generic-inheriting class types (cha…
…pel-lang#25859) This prevented Dyno from resolving method calls on class types that are generic only by virtue of inheriting from a generic parent. Fixed by relaxing the guard on setting `instantiatedFrom` in `ctFromSubs` to also allow it for class types with a generic parent. Along with this, relax the assertion in the `CompositeType` constructor requires no `instantiatedFrom` with empty substitutions, to not be enforced on class types. Includes adding test coverage of the fixed case. Resolves Cray/chapel-private#6672. [reviewed by @benharsh , thanks!] Testing: - [x] dyno tests
- Loading branch information
Showing
3 changed files
with
59 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters