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

Change @experimental spec #13305

Merged
merged 4 commits into from
Aug 23, 2021

Conversation

nicolasstucki
Copy link
Contributor

@nicolasstucki nicolasstucki commented Aug 17, 2021

The main differences with the current version is that @experimental is not experimental and that we are able to define experimental APIs using any version of the compiler (nightly, snapshot and stable release).

See docs/docs/reference/experimental/experimental-defs.md.

@nicolasstucki nicolasstucki added stat:wip release-notes Should be mentioned in the release notes needs-minor-release This PR cannot be merged until the next minor release labels Aug 17, 2021
@nicolasstucki nicolasstucki force-pushed the experimental-annotation branch 5 times, most recently from b73376c to c4edfde Compare August 17, 2021 12:16
@nicolasstucki nicolasstucki added this to the 3.1.0 milestone Aug 17, 2021
@nicolasstucki nicolasstucki force-pushed the experimental-annotation branch 3 times, most recently from fb8bfc1 to d08b595 Compare August 17, 2021 15:02
@nicolasstucki nicolasstucki self-assigned this Aug 18, 2021
@nicolasstucki nicolasstucki force-pushed the experimental-annotation branch 3 times, most recently from 311c290 to 8f43d17 Compare August 20, 2021 08:31
@nicolasstucki nicolasstucki marked this pull request as ready for review August 20, 2021 13:36
compiler/src/dotty/tools/dotc/typer/RefChecks.scala Outdated Show resolved Hide resolved
* As this definition is in `src-non-bootstrapped`, it will not be published.
* It may accidentally be visible while compiling the non-bootstrapped library.
*/
@experimental def testExperimental = 4
Copy link
Member

Choose a reason for hiding this comment

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

Not sure how important it is to test this given that @experimental is no longer experimental itself now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is not really there to check if @experimental is experimental, it is to check that we can define experimental definitions in the standard library. This is to make sure we catch a regression as early as possible as this kind of failure could block an update if the reference compiler.

Note that for 3.1.0 we will not have any other experimental definitions. They will all get stabilized.

@smarter smarter removed their assignment Aug 20, 2021
@odersky odersky assigned nicolasstucki and unassigned odersky Aug 23, 2021
@nicolasstucki nicolasstucki merged commit dd7a07a into scala:master Aug 23, 2021
@nicolasstucki nicolasstucki deleted the experimental-annotation branch August 23, 2021 15:19
@nicolasstucki nicolasstucki mentioned this pull request Aug 23, 2021
@nicolasstucki nicolasstucki linked an issue Aug 24, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-minor-release This PR cannot be merged until the next minor release release-notes Should be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Experimental annotation behaviour redesign
3 participants