Skip to content

Conversation

@nicolasstucki
Copy link
Contributor

Inline accessor was generated correctly and added at the end of the class.
Then transforming bar the foo$inline method was not collected yet.

Fixes #14373

@nicolasstucki nicolasstucki self-assigned this Feb 21, 2022
@nicolasstucki nicolasstucki added the backport:nominated If we agree to backport this PR, replace this tag with "backport:accepted", otherwise delete it. label Feb 21, 2022
@nicolasstucki nicolasstucki marked this pull request as ready for review February 21, 2022 19:22
@nicolasstucki nicolasstucki removed their assignment Feb 21, 2022
case _: Template =>
for sym <- tree.symbol.owner.info.decls do
markSymbol(sym)
super.transform(tree)
Copy link
Member

Choose a reason for hiding this comment

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

Why isn't mapOverTree used like in the other cases where we call markSymbol?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No reason. I updated it to use mapOverTree.

@smarter smarter assigned nicolasstucki and unassigned smarter Feb 24, 2022
Inline accessor was generated correctly and added at the end of the class.
Then transforming `bar` the `foo$inline` method was not collected yet.

Fixes scala#14373
@smarter smarter enabled auto-merge February 25, 2022 13:42
@smarter smarter merged commit 29e4b05 into scala:main Feb 25, 2022
@smarter smarter deleted the fix-#14373 branch February 25, 2022 15:00
@Kordyjan Kordyjan removed the backport:nominated If we agree to backport this PR, replace this tag with "backport:accepted", otherwise delete it. label Jul 26, 2022
@Kordyjan Kordyjan added this to the 3.1.3 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.

AssertionError: assertion failed: unresolved symbols: anonymous class Object with

3 participants