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

remove eta-expansion #12623

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

xuwei-k
Copy link
Contributor

@xuwei-k xuwei-k commented May 8, 2024

Pull Request Checklist

Helpful things

Fixes

Purpose

remove _

Background Context

this syntax deprecated since Scala 3.4.x.
Scala 2.13.x support this syntax if -Xsource:3

Welcome to Scala 3.4.1 (17.0.11, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
                                                                                                                                                                                                                                              
scala> def f(x: Int): Int = x
def f(x: Int): Int
                                                                                                                                                                                                                                              
scala> f _
1 warning found
-- Warning: --------------------------------------------------------------------
1 |f _
  |^^^
  |The syntax `<function> _` is no longer supported;
  |you can simply leave out the trailing ` _`
val res0: Int => Int = Lambda$1431/0x000000040150c000@4cc89246

References

@mkurz
Copy link
Member

mkurz commented May 8, 2024

CI fails

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.

None yet

2 participants