Skip to content

Commit 6c3826e

Browse files
committed
1 parent 89f5846 commit 6c3826e

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)