Skip to content

Fix #8101: Change partially-augmented signalling #8116

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
Jan 30, 2020

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jan 29, 2020

Flags can't be used as non-monotonic signals between phases
since denotations are phase-versioned and later denotations
might exist already when the flag of an earlier denotation is
set. Use two flags instead of one to avoid the non-monotonic change.

Note: I could not make the test fail before doing this change, so I could not
see whether it works now. The test files are in run/i8101. @anatoliykmetyuk can
you verify that this works now, and possibly turn it into a proper test?

@odersky odersky requested a review from smarter January 29, 2020 11:02
@odersky odersky force-pushed the fix-#8101 branch 2 times, most recently from 992049a to 603b3a4 Compare January 29, 2020 15:19
@odersky
Copy link
Contributor Author

odersky commented Jan 29, 2020

I ended up using half of smarter@410adde

since denotations are phase-versioned and later denotations
might exist already when the flag of an earlier denotation is
set. To avoid this, set flags in all following denotations,
not just the current one.
@anatoliykmetyuk anatoliykmetyuk merged commit 2ebbeb7 into scala:master Jan 30, 2020
@anatoliykmetyuk anatoliykmetyuk deleted the fix-#8101 branch January 30, 2020 13:00
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.

2 participants