Skip to content
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

Fix #13221: Set JavaStatic on Module fields of module classes in JSCodeGen. #13381

Merged
merged 1 commit into from
Aug 25, 2021

Conversation

sjrd
Copy link
Member

@sjrd sjrd commented Aug 25, 2021

This replicates what the JVM back-end does, to some extent, and is necessary for desugarIdent not to crash in obscure cases.

We also remove an unnecessary call to desugarIdent.

… JSCodeGen.

This replicates what the JVM back-end does, to some extent, and is
necessary for desugarIdent not to crash in obscure cases.

We also remove an unnecessary call to desugarIdent.
@sjrd sjrd requested a review from smarter August 25, 2021 10:14
Copy link
Member

@smarter smarter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By the way, there's a def desugarIdent in JSCodeGen and a comment above that says "Copied from DottyBackendInterface" but this method has been renamed cachedDesugarIdent in DottyBackendInterface, it would be nice to harmonize JSCodeGen with this (and possibly other changes in DottyBackendInterface?)

@sjrd sjrd linked an issue Aug 25, 2021 that may be closed by this pull request
@sjrd sjrd merged commit 019ec16 into scala:master Aug 25, 2021
@sjrd sjrd deleted the sjs-fix-crash-import-self-type branch August 25, 2021 11:24
@Kordyjan Kordyjan added this to the 3.1.0 milestone Aug 2, 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.

JSCodeGen Crash: import <selfType>.I._
3 participants