Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support generics with consumtion/inheritance in roles
Make the following two constructs possible: role R1[::T] does T {} role R2[::T] is T {} These were assumed possible, according to a comment in ParametricRoleHOW code. But a few final touches needed to make them possible: - traits must accept generics when applied to a parametric type - typechecks must be done against instantiated typeobjects too, including parents - additional validation for archetype of a consumed typeobject after instantiation since it bypassed trait validation Spectests are passing.
- Loading branch information
Showing
3 changed files
with
59 additions
and
12 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