Skip to content

Override Function0.apply() with matching parens #240

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 1 commit into from
Jun 24, 2020

Conversation

retronym
Copy link
Member

Fixes #238

@retronym
Copy link
Member Author

sbt:scala-async> console
[info] Starting scala interpreter...
Welcome to Scala 2.13.2 (OpenJDK 64-Bit Server VM, Java 1.8.0-adoptopenjdk).
Type in expressions for evaluation. Or try :help.

scala> :settings -Xlint:nullary-override

scala>

scala> import scala.concurrent._, ExecutionContext.Implicits.global, scala.async.Async._
import scala.concurrent._
import ExecutionContext.Implicits.global
import scala.async.Async._

scala> async { "hello" }
val res0: scala.concurrent.Future[String] = Future(<not completed>)

@retronym retronym added this to the 0.10.0 milestone Jun 24, 2020
@retronym retronym merged commit 8b3a647 into scala:master Jun 24, 2020
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.

Async.async gives "nullary-override" warning when not provided with explicit type
1 participant