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

Deprecate 3-arg FunctionClass constructor #18472

Merged

Conversation

Kordyjan
Copy link
Contributor

@Kordyjan Kordyjan commented Aug 29, 2023

Also, make two new constructors no longer experimental.

Followup to #16849

@Kordyjan Kordyjan marked this pull request as draft August 29, 2023 10:21
@Kordyjan Kordyjan force-pushed the deprecate-function-class-constructor branch from ed02492 to 232efb6 Compare August 29, 2023 14:09
@Kordyjan Kordyjan marked this pull request as ready for review August 29, 2023 14:09
@@ -4318,16 +4318,14 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
* - ...
* - Nth element is `FunctionN`
*/
// TODO: deprecate in 3.4 and stabilize FunctionClass(Int)/FunctionClass(Int,Boolean)
// @deprecated("Use overload of `FunctionClass` with 1 or 2 arguments","3.4")
@deprecated("Use overload of `FunctionClass` with 1 or 2 arguments","3.4")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
@deprecated("Use overload of `FunctionClass` with 1 or 2 arguments","3.4")
@deprecated("Use overload of `FunctionClass` with 1 or 2 arguments", "3.4")

@nicolasstucki nicolasstucki merged commit 6e45dd7 into scala:main Aug 30, 2023
17 checks passed
@nicolasstucki nicolasstucki deleted the deprecate-function-class-constructor branch August 30, 2023 07:37
bishabosha added a commit that referenced this pull request Dec 19, 2023
These methods should not have been stabiliezed in the first place. Now
that we can mark individual parameters as erased, this method is
fundamentally broken.

Related to #18472
@Kordyjan Kordyjan added this to the 3.4.0 milestone Dec 20, 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.

2 participants