Skip to content
Browse files

SI-7022 Additional test case for value class w. bounds

As reported against 2.10.0, and as fixed by SI-6482,
which was backported in the previous commit.
  • Loading branch information...
1 parent 4ed8836 commit 374c912a1440193b06fc6fd74b39063949b2c086 @retronym retronym committed
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/files/pos/t7022.scala
View
9 test/files/pos/t7022.scala
@@ -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

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


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

@scala-jenkins

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


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

Please sign in to comment.
Something went wrong with that request. Please try again.