Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

som-snytt
Copy link
Contributor

@scala-jenkins scala-jenkins added this to the 2.13.17 milestone Apr 14, 2025
@som-snytt som-snytt marked this pull request as ready for review April 14, 2025 16:44
val nm =
if (v.symbol.isPrivateLocal) {
val g = v.getterName
val i = g.lastPos(scala.reflect.NameTransformer.NAME_JOIN_STRING(0))
Copy link
Member

Choose a reason for hiding this comment

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

This is to undo expandName right? Checking v.symbol.hasFlag(EXPANDEDNAME) above and splitting the name at EXPAND_SEPARATOR_STRING would be a bit more precise?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks

Improve name unexpansion for early def
@som-snytt som-snytt force-pushed the issue/10561-early-init-crash branch from 4aa9a31 to 87ce314 Compare April 14, 2025 20:30
@som-snytt
Copy link
Contributor Author

Rebased and squashed. I see that the diff could have been more minimal.

Copy link
Member

@lrytz lrytz left a comment

Choose a reason for hiding this comment

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

Thanks!

@lrytz lrytz merged commit 9ad2167 into scala:2.13.x Apr 15, 2025
3 checks passed
@som-snytt som-snytt deleted the issue/10561-early-init-crash branch April 15, 2025 11:55
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.

Compiler crashes when a private early initializer is referenced in an inner class
3 participants