Skip to content

Dealias in ConstantValue, for inline if cond #16652

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 11, 2023

Conversation

dwijnand
Copy link
Member

@dwijnand dwijnand commented Jan 10, 2023

With the change in AvoidMap's derivedSelect, making it widen less
aggressively, now inlining can return a constant value typed with an
alias to a constant type, e.g. false: BaseLogger_this.False.
Similarly to inline val, we can dealias these.

Fixes #16641.

With the change in AvoidMap's derivedSelect, making it widen less
aggressively, now inlining can return a constant value typed with an
alias to a constant type, e.g. `false: BaseLogger_this.False`.
Similarly to inline val, we can dealias these.
@dwijnand dwijnand self-assigned this Jan 10, 2023
@dwijnand dwijnand linked an issue Jan 10, 2023 that may be closed by this pull request
@dwijnand dwijnand marked this pull request as ready for review January 10, 2023 22:34
@dwijnand dwijnand assigned nicolasstucki and unassigned dwijnand Jan 10, 2023
@dwijnand dwijnand merged commit 4afb0fc into scala:main Jan 11, 2023
@dwijnand dwijnand deleted the constant-inline-if branch January 11, 2023 08:46
@Kordyjan Kordyjan added this to the 3.3.0 milestone Aug 1, 2023
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.

Regression for inline if when condition is defined in trait
3 participants