Skip to content

Disallow @targetName on top-level class, trait, and object #15068

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 2 commits into from
May 6, 2022

Conversation

griggt
Copy link
Contributor

@griggt griggt commented Apr 29, 2022

This usage was mostly broken, as it failed with separate compilation.

Closes #15066

Cleanup some leftovers from when `@targetName` was called `@alpha`.
@griggt

This comment was marked as outdated.

This usage was mostly broken, as it failed with separate compilation.
@griggt griggt force-pushed the disallow-targetname-on-toplevel-classes branch from 6888f09 to 47189c7 Compare April 29, 2022 04:38
@@ -176,7 +176,8 @@ enum ErrorMessageID extends java.lang.Enum[ErrorMessageID]:
MatchableWarningID,
CannotExtendFunctionID,
LossyWideningConstantConversionID,
ImplicitSearchTooLargeID
ImplicitSearchTooLargeID,
TargetNameOnTopLevelClassID
Copy link
Contributor

Choose a reason for hiding this comment

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

Does anyone else feel the need for an end marker, and also trailing comma before end marker?

@griggt griggt added this to the 3.2.0-RC1 milestone May 4, 2022
@griggt griggt marked this pull request as ready for review May 4, 2022 15:33
@griggt griggt merged commit 9865ef6 into scala:main May 6, 2022
@griggt griggt deleted the disallow-targetname-on-toplevel-classes branch May 6, 2022 19:49
@Kordyjan Kordyjan modified the milestones: 3.2.0-RC1, 3.2.0 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.

@targetName on toplevel class/trait/object fails separate compilation
4 participants