Skip to content

Commit

Permalink
Add an implicitNotFoundAnnotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
zainab-ali committed Apr 4, 2024
1 parent 08d12df commit b5f6290
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/core/shared/src/main/scala/weaver/Comparison.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ package weaver
import cats.Eq
import cats.Show
import com.eed3si9n.expecty._
import scala.annotation.implicitNotFound

@implicitNotFound("Could not find an implicit Comparison[${A}]. Does ${A} have an associated cats.Eq[${A}] instance?")
trait Comparison[A] {
def diff(expected: A, found: A): Option[String]
}
Expand Down

0 comments on commit b5f6290

Please sign in to comment.