Skip to content

Allow "new with" #7831

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

Merged
merged 3 commits into from
Jan 7, 2020
Merged

Allow "new with" #7831

merged 3 commits into from
Jan 7, 2020

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Dec 21, 2019

Allow

new with
  ...

as an alternative to

new {
  ...
}

Transforming the argument can already cause errors coming from
TypeAssigne rthat need to be caught instead of being issued.
The previous code was buggy in that *all* arguments of a method
containing a single by-name argument were post processed.
Allow

    new with
      ...

as an alternative to

    new {
      ...
    }
@odersky odersky merged commit 4fd0520 into scala:master Jan 7, 2020
@odersky odersky deleted the add-new-with branch January 7, 2020 12:27
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