Skip to content

Commit

Permalink
added the missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
kailuowang committed Nov 14, 2017
1 parent e970e94 commit 67f5861
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/src/test/scala-2.11+/cats/tests/ExtraRegressionSuite.scala
Original file line number Diff line number Diff line change
@@ -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)})"
}
}

}

0 comments on commit 67f5861

Please sign in to comment.