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

Deprecate auto-application of (non-Java-defined) methods with a single empty parameter list #8833

Merged
merged 1 commit into from Jun 2, 2020

Commits on Jun 1, 2020

  1. Fast-track deprecating auto-application

    Auto-application is dropped in Scala 3:
    https://dotty.epfl.ch/docs/reference/dropped-features/auto-apply.html
    
    So it must be deprecated in 2.13 first.
    
    Also, AFAICT Object_clone is Java-defined:
    
        $ qscala
        Welcome to Scala 2.13.2-20200325-150327-bc1cad4 (OpenJDK 64-Bit Server VM, Java 11.0.6).
        Type in expressions for evaluation. Or try :help.
    
        scala> :power
        Power mode enabled. :phase is at typer.
        import scala.tools.nsc._, intp.global._, definitions._
        Try :help or completions for vals._ and power._
    
        scala> Object_clone.isJavaDefined
        val res0: Boolean = true
    dwijnand authored and SethTisue committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    c900df8 View commit details
    Browse the repository at this point in the history