Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix compile error in Scala 2.13.0-M4
- scala/community-build#710 - https://scala-ci.typesafe.com/job/scala-2.13.x-integrate-community-build/1092/consoleFull ``` [sbt-io] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.12/project-builds/sbt-io-1aeb11a3d751ba13cb0d1d22d082306f3c24a209/io/src/main/scala/sbt/io/MacOSXWatchService.scala:61:32: overloaded method value flatMap with alternatives: [sbt-io] [error] [K2, V2](f: ((java.nio.file.Path, sbt.io.MacOSXWatchKey)) => scala.collection.IterableOnce[(K2, V2)])scala.collection.mutable.Map[K2,V2] <and> [sbt-io] [error] [B](f: ((java.nio.file.Path, sbt.io.MacOSXWatchKey)) => scala.collection.IterableOnce[B])scala.collection.mutable.Iterable[B] [sbt-io] [error] cannot be applied to (((java.nio.file.Path, sbt.io.MacOSXWatchKey)) => Option[(sbt.io.MacOSXWatchKey, scala.collection.mutable.Buffer[java.nio.file.WatchEvent[java.nio.file.Path]])]) [sbt-io] [error] .synchronized(registered.flatMap { [sbt-io] [error] ^ [sbt-io] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.12/project-builds/sbt-io-1aeb11a3d751ba13cb0d1d22d082306f3c24a209/io/src/main/scala/sbt/io/MacOSXWatchService.scala:61:32: overloaded method value flatMap with alternatives: [sbt-io] [error] [K2, V2](f: ((java.nio.file.Path, sbt.io.MacOSXWatchKey)) => scala.collection.IterableOnce[(K2, V2)])scala.collection.mutable.Map[K2,V2] <and> [sbt-io] [error] [B](f: ((java.nio.file.Path, sbt.io.MacOSXWatchKey)) => scala.collection.IterableOnce[B])scala.collection.mutable.Iterable[B] [sbt-io] [error] cannot be applied to (((java.nio.file.Path, sbt.io.MacOSXWatchKey)) => Option[(sbt.io.MacOSXWatchKey, scala.collection.mutable.Buffer[java.nio.file.WatchEvent[java.nio.file.Path]])]) [sbt-io] [error] .synchronized(registered.flatMap { [sbt-io] [error] ^ [sbt-io] [warn] one warning found [sbt-io] [error] one error found [sbt-io] [info] No documentation generated with unsuccessful compiler run [sbt-io] [warn] two warnings found [sbt-io] [error] one error found [sbt-io] [error] (io / Compile / compileIncremental) Compilation failed [sbt-io] [error] (io / Compile / doc) Scaladoc generation failed ```
- Loading branch information