You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code which has partial match functions which are annotated with @unchecked will raise a false compiler warning when instrumented with scoverage.
For example:
object PartialMatchObject {
def partialMatchExample(s: Option[String]): Unit = {
(s: @unchecked) match {
case Some(str) => println(str)
}
}
}
The above code will give a "match may not be exhaustive" false compiler warning on sbt scoverage:compile (it will not give a compiler warning when compiled normally).
The text was updated successfully, but these errors were encountered:
I reckon the annotation is not being copied by the plugin transformation phase. Now I have a way of debugging directly inside intellij should be easy to fix.
It’s definitely not the first.
The second is a bit vague. It has serious problems that are probably insurmountable.
I've sent you an email with my thoughts.
(Low priority)
Code which has partial match functions which are annotated with
@unchecked
will raise a false compiler warning when instrumented withscoverage
.For example:
The above code will give a "
match may not be exhaustive
" false compiler warning onsbt scoverage:compile
(it will not give a compiler warning when compiled normally).The text was updated successfully, but these errors were encountered: