summaryrefslogblamecommitdiff
path: root/test/files/pos/t7022.scala
blob: 0609e2d250114e488b7da43f05287ea5b88abf91 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                             
class Catch[+T] {
	def either[U >: T](body: => U): Either[Throwable, U] = ???
}

object Test {
	implicit class RichCatch[T](val c: Catch[T]) extends AnyVal {
	  def validation[U >: T](u: => U): Either[Throwable, U] = c.either(u)
	}
}