Skip to content

Commit d5c07fa

Browse files
committed
Merge pull request #95 from maiflai/issue_93
breaking test for http://github.com/scoverage/scalac-scoverage-plugin/issues/93
2 parents 89f5846 + 6c3826e commit d5c07fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scalac-scoverage-plugin/src/test/scala/scoverage/PluginCoverageTest.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,13 @@ class PluginCoverageTest
304304
| } catch {
305305
| case _: Throwable =>
306306
| Option(true) match {
307-
| case Some(bool) => return bool // comment this return and instrumentation succeeds
307+
| case Some(bool) => return recover(bool) // comment this return and instrumentation succeeds
308308
| case _ =>
309309
| }
310310
| false
311311
| }
312312
| }
313+
| def recover(it: Boolean): Boolean = it
313314
| }
314315
""".stripMargin)
315316
assert(!compiler.reporter.hasErrors)

0 commit comments

Comments
 (0)