Skip to content

Commit

Permalink
SI-7022 Additional test case for value class w. bounds
Browse files Browse the repository at this point in the history
As reported against 2.10.0, and as fixed by SI-6482,
which was backported in the previous commit.
  • Loading branch information
retronym committed Feb 2, 2013
1 parent 4ed8836 commit 374c912
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/files/pos/t7022.scala
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,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)
}
}

2 comments on commit 374c912

@scala-jenkins
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Job pr-checkin-per-commit failed for 374c912 (results):


Took 55 s.
sad kitty
to rebuild, comment "PLS REBUILD/pr-checkin-per-commit@374c912a1440193b06fc6fd74b39063949b2c086"on PR #2112

@scala-jenkins
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Job pr-rangepos-per-commit failed for 374c912 (results):


Took 14 s.
sad kitty
to rebuild, comment "PLS REBUILD/pr-rangepos-per-commit@374c912a1440193b06fc6fd74b39063949b2c086"on PR #2112

Please sign in to comment.