mlscript
mlscript copied to clipboard
Type Selection
trafficstars
Note: part of #195
Changes:
- Parsing
- type member declaration with bounds
Foo[type A extends L restricts U] - type selection
x.A asoperator- wildcard type
?
- type member declaration with bounds
- Type checking:
- type selection typing
Not included in this PR:
- pushing type alias member to type members i.e.
class Foo { type T }
Thanks for the great work!
However, as you know, we've moved to a new version of the compiler, which will have a brand new type checker implementation. So while your PR is useful for future reference when we reimplement similar features in the new compiler (I will add a tag to that effect), it's probably not worth fixing the merge conflicts with the old type checker.