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

add parentheses. prepare sbt 2.x #85

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xuwei-k
Copy link
Contributor

@xuwei-k xuwei-k commented Oct 7, 2024

sbt 2.x will be build with Scala 3.x. Scala 3.x require parentheses

https://www.scala-sbt.org/2.x/docs/en/changes/migrating-from-sbt-1.x.html

Welcome to Scala 3.3.4 (21.0.4, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
                                                                                                                                           
scala> List(2).map{ a => a }
val res0: List[Int] = List(2)
                                                                                                                                           
scala> List(2).map{ a: Int => a }
-- Error: ----------------------------------------------------------------------
1 |List(2).map{ a: Int => a }
  |                    ^
  |                 parentheses are required around the parameter of a lambda
                                                                                                                                           
scala> List(2).map{ (a: Int) => a }
val res1: List[Int] = List(2)

@xuwei-k xuwei-k temporarily deployed to fm-sbt-s3-resolver-example-bucket October 7, 2024 08:54 — with GitHub Actions Inactive
@xuwei-k xuwei-k temporarily deployed to fm-sbt-s3-resolver-example-bucket October 7, 2024 08:54 — with GitHub Actions Inactive
@xuwei-k xuwei-k temporarily deployed to fm-sbt-s3-resolver-example-bucket October 7, 2024 08:54 — with GitHub Actions Inactive
@xuwei-k xuwei-k temporarily deployed to fm-sbt-s3-resolver-example-bucket October 7, 2024 08:54 — with GitHub Actions Inactive
@xuwei-k xuwei-k temporarily deployed to fm-sbt-s3-resolver-example-bucket October 7, 2024 08:54 — with GitHub Actions Inactive
@xuwei-k xuwei-k temporarily deployed to fm-sbt-s3-resolver-example-bucket October 7, 2024 08:54 — with GitHub Actions Inactive
@xuwei-k xuwei-k temporarily deployed to fm-sbt-s3-resolver-example-bucket October 7, 2024 08:54 — with GitHub Actions Inactive
@xuwei-k xuwei-k temporarily deployed to fm-sbt-s3-resolver-example-bucket October 7, 2024 08:54 — with GitHub Actions Inactive
@xuwei-k xuwei-k temporarily deployed to fm-sbt-s3-resolver-example-bucket October 7, 2024 08:54 — with GitHub Actions Inactive
@xuwei-k xuwei-k temporarily deployed to fm-sbt-s3-resolver-example-bucket October 7, 2024 08:54 — with GitHub Actions Inactive
@xuwei-k xuwei-k temporarily deployed to fm-sbt-s3-resolver-example-bucket October 7, 2024 08:54 — with GitHub Actions Inactive
@xuwei-k xuwei-k temporarily deployed to fm-sbt-s3-resolver-example-bucket October 7, 2024 08:54 — with GitHub Actions Inactive
@xuwei-k xuwei-k temporarily deployed to fm-sbt-s3-resolver-example-bucket October 7, 2024 08:54 — with GitHub Actions Inactive
@xuwei-k xuwei-k temporarily deployed to fm-sbt-s3-resolver-example-bucket October 7, 2024 08:54 — with GitHub Actions Inactive
@xuwei-k xuwei-k temporarily deployed to fm-sbt-s3-resolver-example-bucket October 7, 2024 08:55 — with GitHub Actions Inactive
@xuwei-k xuwei-k temporarily deployed to fm-sbt-s3-resolver-example-bucket October 7, 2024 08:55 — with GitHub Actions Inactive
@xuwei-k xuwei-k temporarily deployed to fm-sbt-s3-resolver-example-bucket October 7, 2024 08:55 — with GitHub Actions Inactive
@xuwei-k xuwei-k temporarily deployed to fm-sbt-s3-resolver-example-bucket October 7, 2024 08:55 — with GitHub Actions Inactive
@xuwei-k xuwei-k temporarily deployed to fm-sbt-s3-resolver-example-bucket October 7, 2024 08:55 — with GitHub Actions Inactive
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.

1 participant