Skip to content

Commit c5d6a82

Browse files
som-snyttlrytz
authored andcommitted
Don't compare types with equals
cherry-pick of com-lihaoyi#401
1 parent 2d84ee9 commit c5d6a82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utest/src-2/utest/asserts/Tracer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ object Tracer{
7878
i.tpe match {
7979
case t: AnnotatedType
8080
// Don't worry about multiple chained annotations for now...
81-
if t.annotations.map(_.tpe) == Seq(typeOf[utest.asserts.Show]) =>
81+
if t.annotations.corresponds(Seq(typeOf[utest.asserts.Show]))(_.tpe <:< _) =>
8282

8383
val newTpe = t.underlying
8484

0 commit comments

Comments
 (0)