Skip to content

Commit 8288bd0

Browse files
committed
Fixing issue with 2.10 release of 1.0.3
1 parent 78fed7e commit 8288bd0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

project/Scoverage.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ object Scoverage extends Build {
55

66
val Org = "org.scoverage"
77
val Version = "1.0.3"
8-
val Scala = "2.11.4"
8+
val Scala = "2.11.5"
99
val MockitoVersion = "1.9.5"
10-
val ScalatestVersion = "2.2.3"
10+
val ScalatestVersion = "2.2.2"
1111

1212
lazy val LocalTest = config("local") extend Test
1313

1414
val appSettings = Seq(
1515
version := Version,
1616
organization := Org,
1717
scalaVersion := Scala,
18-
crossScalaVersions := Seq("2.10.4", "2.11.4"),
18+
crossScalaVersions := Seq("2.10.4", "2.11.5"),
1919
fork in Test := false,
2020
publishMavenStyle := true,
2121
publishArtifact in Test := false,
@@ -77,8 +77,8 @@ object Scoverage extends Build {
7777
.settings(name := "scalac-scoverage-plugin")
7878
.settings(appSettings: _*)
7979
.settings(libraryDependencies ++= Seq(
80-
"org.scala-lang" % "scala-reflect" % Scala % "provided",
81-
"org.scala-lang" % "scala-compiler" % Scala % "provided",
80+
"org.scala-lang" % "scala-reflect" % scalaVersion.value % "provided",
81+
"org.scala-lang" % "scala-compiler" % scalaVersion.value % "provided",
8282
"org.joda" % "joda-convert" % "1.6" % "test",
8383
"joda-time" % "joda-time" % "2.3" % "test",
8484
"com.typesafe.scala-logging" %% "scala-logging-slf4j" % "2.1.2" % "test"

scalac-scoverage-plugin/src/main/scala/scoverage/plugin.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ class ScoverageInstrumentationComponent(val global: Global)
235235
def traverseApplication(t: Tree): Tree = {
236236
t match {
237237
case a: ApplyToImplicitArgs => treeCopy.Apply(a, traverseApplication(a.fun), transformStatements(a.args))
238-
case Apply(Select(_, TermName("withFilter")), List(fun@Function(params, body)))
238+
case Apply(Select(_, newTermName("withFilter")), List(fun@Function(params, body)))
239239
if fun.symbol.isSynthetic && fun.toString.contains("check$ifrefutable$1") => t
240240
case a: Apply => treeCopy.Apply(a, traverseApplication(a.fun), transformStatements(a.args))
241241
case a: TypeApply => treeCopy.TypeApply(a, traverseApplication(a.fun), transformStatements(a.args))

0 commit comments

Comments
 (0)