Skip to content

Check nested weak types in intersections on target side of relation#51140

Merged
ahejlsberg merged 5 commits intomainfrom
fix51043
Oct 13, 2022
Merged

Check nested weak types in intersections on target side of relation#51140
ahejlsberg merged 5 commits intomainfrom
fix51043

Conversation

@ahejlsberg
Copy link
Copy Markdown
Member

@ahejlsberg ahejlsberg commented Oct 11, 2022

Fixes #51043.

This PR also moves some intersection property check logic from isRelatedTo to structuredTypeRelatedTo (i.e. from the un-cached to the cached side of relationship checking). This allows us to get rid of a separate cache lookup and two associated IntersectionState flags.

Loading
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Milestone Bug PRs that fix a bug with a specific milestone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Combination of intersections/partials causes invalid nested object type to not report error

3 participants