We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
can compile: def combiner: BiFunction[Int, Int, Int] = (one: Int, other: Int) => one + other
can not compile: def combiner: BinaryOperator[Int] = (one: Int, other: Int) => one + other
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-10243?orig=1 Reporter: Hank Lu (hank.whu) Affected Versions: 2.12.1
Sorry, something went wrong.
@ghik said: Both of these work just fine in Scala 2.12.1
Welcome to Scala 2.12.1 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_121). Type in expressions for evaluation. Or try :help. scala> import java.util.function._ import java.util.function._ scala> def combiner: BinaryOperator[Int] = (one: Int, other: Int) => one + other combiner: java.util.function.BinaryOperator[Int] scala> def combiner: BiFunction[Int, Int, Int] = (one: Int, other: Int) => one + other combiner: java.util.function.BiFunction[Int,Int,Int]
@adriaanm said: Thanks, Roman! Hank, let us know if you're still experiencing this issue, but please provide a full reproduction.
No branches or pull requests
can compile:
def combiner: BiFunction[Int, Int, Int] = (one: Int, other: Int) => one + other
can not compile:
def combiner: BinaryOperator[Int] = (one: Int, other: Int) => one + other
The text was updated successfully, but these errors were encountered: