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

Don't eta expand unary varargs methods #16892

Merged
merged 1 commit into from
Feb 19, 2023
Merged

Commits on Feb 12, 2023

  1. Don't eta expand unary varargs methods

    A unary varargs method sits between nullary methods that sometimes get a () argument inferred
    (i.e. for methods coming from Java) and other methods that can be eta expanded. The safest
    strategy for them is to do neither, and expect either an explicit expected function type,
    or an explicit argument. That's also what Scala 2 does.
    
    Fixes scala#16820
    
    Reclassifies scala#14567 to be a neg test (with the error message suggested in the original issue
    for scala#14567)
    odersky committed Feb 12, 2023
    Configuration menu
    Copy the full SHA
    ae05f99 View commit details
    Browse the repository at this point in the history