diff options
Diffstat (limited to 'src/scala')
-rw-r--r-- | src/scala/Eq.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/scala/Eq.scala b/src/scala/Eq.scala index 697ec4318..6d993ac39 100644 --- a/src/scala/Eq.scala +++ b/src/scala/Eq.scala @@ -1,6 +1,9 @@ package scala +import annotation.implicitNotFound + /** A marker class indicating that values of kind `T` can be compared. */ +@implicitNotFound("Values of types ${L} and ${R} cannot be compared with == or !=") class Eq[-L, -R] /** Besides being a companion object, this object |