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 for lambda param #10878

Merged
merged 1 commit into from
Jun 16, 2021

Commits on May 27, 2021

  1. add parentheses for lambda param

    prepare Scala 3
    
    ```
    scala> Option(1).map{ a => a }
    val res0: Option[Int] = Some(1)
    
    scala> Option(1).map{ a: Int => a }
    1 |Option(1).map{ a: Int => a }
      |                      ^
      |parentheses are required around the parameter of a lambda
      |This construct can be rewritten automatically under -rewrite -source 3.0-migration.
    ```
    xuwei-k committed May 27, 2021
    Configuration menu
    Copy the full SHA
    84d2a0c View commit details
    Browse the repository at this point in the history