We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 89f5846 + 6c3826e commit d5c07faCopy full SHA for d5c07fa
scalac-scoverage-plugin/src/test/scala/scoverage/PluginCoverageTest.scala
@@ -304,12 +304,13 @@ class PluginCoverageTest
304
| } catch {
305
| case _: Throwable =>
306
| Option(true) match {
307
- | case Some(bool) => return bool // comment this return and instrumentation succeeds
+ | case Some(bool) => return recover(bool) // comment this return and instrumentation succeeds
308
| case _ =>
309
| }
310
| false
311
312
313
+ | def recover(it: Boolean): Boolean = it
314
315
""".stripMargin)
316
assert(!compiler.reporter.hasErrors)
0 commit comments