zio-shield icon indicating copy to clipboard operation
zio-shield copied to clipboard

annotations ignored?

Open NeQuissimus opened this issue 4 years ago • 0 comments

Are the annotations not supposed to mark code as "Don't worry, Shield"?

I have this code

  import Scalaz._

  implicit class MatcherOps[A: Equal](lhs: A) {
    @impure
    def <=>(rhs: A): Unit = Predef.assert(lhs === rhs, s"${lhs} != ${rhs}")
  }

Despite the annotation it will report error: possibly impure

NeQuissimus avatar Dec 21 '19 20:12 NeQuissimus