diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-01-26 10:43:48 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-02-02 01:30:20 +0100 |
commit | 374c912a1440193b06fc6fd74b39063949b2c086 (patch) | |
tree | 7feee93df453fa8401c2dbfd3d4f372e6de8e09a /test/files | |
parent | 4ed88363f6867e5b4ebedfde10b88c0167f24f23 (diff) | |
download | scala-374c912a1440193b06fc6fd74b39063949b2c086.tar.gz scala-374c912a1440193b06fc6fd74b39063949b2c086.tar.bz2 scala-374c912a1440193b06fc6fd74b39063949b2c086.zip |
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.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/pos/t7022.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/pos/t7022.scala b/test/files/pos/t7022.scala new file mode 100644 index 0000000000..0609e2d250 --- /dev/null +++ b/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) + } +} |