-
Notifications
You must be signed in to change notification settings - Fork 831
Fix 'open type' on generic unions and records #9932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cartermp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes seem straightforward, as do the tests. Are there any perf considerations for freshening a given record field reference? I don't have a good frame of reference for that, but I recall freshening being expensive for some things in a different PR and was curious.
|
As far as freshening and perf, we are not freshening any more than before so I'm not concerned. |
…sharp into fix-open-type-union-record
* Fixed generic union type instantiation on open type * Fixed record type instantiation. Added tests for pattern matching on union and records. * Consolidating fix * remove comment * Renamed field and updated comment * Minor updates
Resolves #9914
The best way to handle record labels and unions was adding a new field to name resolution to lookup the type instantiations based on
TyconRef.