Skip to content

Only propagate type updates in a Reference from FULL previous DFG nodes #1554

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

Merged
merged 1 commit into from
May 9, 2024

Conversation

oxisto
Copy link
Member

@oxisto oxisto commented May 8, 2024

Otherwise, an update in the base's type could propagate to a member and this is BAD. This is due to the fact that

  • a MemberExpression is also a Reference
  • we have a PARTIAL DFG from the base of the member expression to the member expression

@oxisto oxisto requested review from konradweiss and KuechA as code owners May 8, 2024 20:37
…odes

Otherwise, an update in the base's type could propagate to a member (since we have a PARTIAL DFG from the base to the member) and this is BAD.
@oxisto oxisto force-pushed the dfg-propagate-fix branch from f95e146 to bfe9bd6 Compare May 8, 2024 20:39
Copy link

sonarqubecloud bot commented May 8, 2024

@oxisto oxisto requested a review from morbitzer May 8, 2024 20:47
@oxisto oxisto merged commit 89b5bb5 into main May 9, 2024
3 checks passed
@oxisto oxisto deleted the dfg-propagate-fix branch May 9, 2024 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants