summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-12-19 21:20:52 -0800
committerPaul Phillips <paulp@improving.org>2011-12-19 23:22:35 -0800
commit6226468fdf81d46f005b97fb49c4ec08c856ea3f (patch)
tree49aec00143ad314f56dbe9b590a615a34cd34f19 /test
parent107e87f81be45aedccb6a943ffea86591c49fba7 (diff)
downloadscala-6226468fdf81d46f005b97fb49c4ec08c856ea3f.tar.gz
scala-6226468fdf81d46f005b97fb49c4ec08c856ea3f.tar.bz2
scala-6226468fdf81d46f005b97fb49c4ec08c856ea3f.zip
Test case closes SI-5119.
Diffstat (limited to 'test')
-rw-r--r--test/files/pos/t5119.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/pos/t5119.scala b/test/files/pos/t5119.scala
new file mode 100644
index 0000000000..4a67244e50
--- /dev/null
+++ b/test/files/pos/t5119.scala
@@ -0,0 +1,13 @@
+import collection.mutable
+
+object Test {
+ class IMap0[K[_], V[_]](backing: Map[K[_], V[_]]) {
+ def mapSeparate[VL[_], VR[_]](f: V[_] => ({type l[T] = Either[VL[T], VR[T]]})#l[_] ) = {
+ backing.view.map { case (k,v) => f(v) match {
+ case Left(l) => Left((k, l))
+ case Right(r) => Right((k, r))
+ }
+ }
+ }
+ }
+}