summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/files/neg/t5067.check6
-rw-r--r--test/files/neg/t5067.scala4
2 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/t5067.check b/test/files/neg/t5067.check
new file mode 100644
index 0000000000..32491766d7
--- /dev/null
+++ b/test/files/neg/t5067.check
@@ -0,0 +1,6 @@
+t5067.scala:3: error: type mismatch;
+ found : ((Int, Int)) => Int
+ required: (Int, Int) => Int
+ override def tupled: (Int, Int) => Int = super.tupled
+ ^
+one error found
diff --git a/test/files/neg/t5067.scala b/test/files/neg/t5067.scala
new file mode 100644
index 0000000000..f8235c0e83
--- /dev/null
+++ b/test/files/neg/t5067.scala
@@ -0,0 +1,4 @@
+class Foo extends Function2[Int, Int, Int] {
+ def apply(x: Int, y: Int) = x + y
+ override def tupled: (Int, Int) => Int = super.tupled
+}