aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t2797.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t2797.scala')
-rw-r--r--tests/pos/t2797.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pos/t2797.scala b/tests/pos/t2797.scala
new file mode 100644
index 000000000..cf579d8de
--- /dev/null
+++ b/tests/pos/t2797.scala
@@ -0,0 +1,9 @@
+class MyVector[A] {
+ def map[B](f: A => B): MyVector[B] = sys.error("")
+}
+
+object Test {
+ def unzip[B, C](_this: MyVector[(B, C)]): (MyVector[B], MyVector[C]) = {
+ (_this.map{ bc => bc._1 }, _this.map{ bc => bc._2 })
+ }
+}