diff --git a/tests/src/test/scala-2.11+/cats/tests/ExtraRegressionSuite.scala b/tests/src/test/scala-2.11+/cats/tests/ExtraRegressionSuite.scala new file mode 100644 index 00000000000..5de9ca8762c --- /dev/null +++ b/tests/src/test/scala-2.11+/cats/tests/ExtraRegressionSuite.scala @@ -0,0 +1,25 @@ +package cats +package tests + + +import ExtraRegressionSuite._ + +class ExtraRegressionSuite extends CatsSuite { + /** + * Placed here to work around scala/bug#6260 on scala 2.10 + */ + test("#1802 duplicated method name") { + Show[First[String]] + } +} + + +object ExtraRegressionSuite { + final case class First[A](getFirst: A) extends AnyVal + object First { + implicit def showInstance[A](implicit ev: Show[A]): Show[First[A]] = new Show[First[A]] { + override def show(f: First[A]): String = s"First(${ev.show(f.getFirst)})" + } + } + +}