Skip to content
This repository was archived by the owner on Jun 23, 2020. It is now read-only.

Commit 38efb75

Browse files
committed
Explicitly annotate return type of defaultExecutionContext
Related to #20
1 parent c91524a commit 38efb75

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

build.sbt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ val pluginJar = packageTask in (plugin, Compile)
3030
// TODO: the library project's test are really plugin tests, but we first need that jar
3131
lazy val library = project settings (scalaModuleOsgiSettings: _*) settings (MimaPlugin.mimaDefaultSettings: _*) settings (
3232
name := "scala-continuations-library",
33-
MimaKeys.mimaPreviousArtifacts := Set(organization.value % s"${name.value}_2.11.0-RC1" % "1.0.0"),
33+
MimaKeys.mimaPreviousArtifacts := Set(
34+
organization.value % s"${name.value}_2.11.0-RC1" % "1.0.0",
35+
organization.value % s"${name.value}_2.11" % "1.0.2"
36+
),
3437
scalacOptions ++= Seq(
3538
// add the plugin to the compiler
3639
s"-Xplugin:${pluginJar.value.getAbsolutePath}",

library/src/test/scala/scala/tools/selectivecps/TestSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ class HigherOrder {
792792
}
793793
class ExecutionContext
794794

795-
implicit def defaultExecutionContext = new ExecutionContext
795+
implicit def defaultExecutionContext: ExecutionContext = new ExecutionContext
796796

797797
case class Future[+T](x: T) {
798798
final def map[A](f: T => A): Future[A] = new Future[A](f(x))

0 commit comments

Comments
 (0)