diff options
author | Paul Phillips <paulp@improving.org> | 2011-10-09 19:24:26 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-01-22 20:56:54 -0800 |
commit | 9c3cbde0fdb8f3b84df3b5fa326946cd18c92a4e (patch) | |
tree | 0fe521d40346b7af5175e1f841be2d31f95b85b0 /test | |
parent | 7ad3595a8dcd5fb35e170b5926f917b3db436b97 (diff) | |
download | scala-9c3cbde0fdb8f3b84df3b5fa326946cd18c92a4e.tar.gz scala-9c3cbde0fdb8f3b84df3b5fa326946cd18c92a4e.tar.bz2 scala-9c3cbde0fdb8f3b84df3b5fa326946cd18c92a4e.zip |
Fix for error printing regression.
One's devotion to aesthetics must not be allowed to trump one's
commitment to clearly delineated tuplehood. Closes SI-5067, no review.
Conflicts:
src/compiler/scala/tools/nsc/symtab/Types.scala
Diffstat (limited to 'test')
-rw-r--r-- | test/files/neg/t5067.check | 6 | ||||
-rw-r--r-- | test/files/neg/t5067.scala | 4 |
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 +} |