Skip to content

Backport "Add missing -Yexplicit-nulls for presentation compiler" to LTS #20758

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
Jun 23, 2024

Conversation

WojciechMazur
Copy link
Contributor

Backports #18776 to the LTS branch.

PR submitted by the release tooling.
[skip ci]

With a new definition of untyped trees, it is now required to have
`-Yexplicit-nulls` flag in modules that use them in order to have proper
type checking. This PR adds the missing flag.

Without the flag, it was possible to first assign untyped trees to typed
trees, and secondly use extension methods for typed trees which can be
seen at `KeywordsCompletions.scala` with usage of
`untpdTree.filterSubtrees`.

It is also blocked by: #18775

I can also make a workaround in the unmanaged module, but it will
require a dependency on nightly version / a new release from metals.
[Cherry-picked e149e4c]
Base automatically changed from lts-18838 to lts-3.3 June 23, 2024 22:41
@WojciechMazur
Copy link
Contributor Author

No regressions detected in the community build up to lts-19083.

Reference

@WojciechMazur WojciechMazur merged commit 785fea7 into lts-3.3 Jun 23, 2024
19 checks passed
@WojciechMazur WojciechMazur deleted the lts-18776 branch June 23, 2024 22:41
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