Skip to content

Commit c584f23

Browse files
dekelatwixetorreborre
authored andcommitted
Update AnyMatchers.scala (etorreborre#1112)
This fixes a problem where you can't use beEqualTo as a parameter matcher when mocking in mockito.
1 parent e21edc9 commit c584f23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

matcher/shared/src/main/scala/org/specs2/matcher/AnyMatchers.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class BeFalseMatcher extends Matcher[Boolean]:
176176

177177
/** Equality Matcher
178178
*/
179-
class BeEqualTo(t: =>Any) extends EqualityMatcher(t)
179+
class BeEqualTo[T](t: =>T) extends EqualityMatcher(t)
180180

181181
/** This matcher always matches any value of type T
182182
*/

0 commit comments

Comments
 (0)