summaryrefslogtreecommitdiff
path: root/test/pending/neg
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-05-23 16:50:45 -0700
committerPaul Phillips <paulp@improving.org>2013-05-23 23:18:42 -0700
commitde12ca6ef8071820c6b2a9403ccab9aa6ed51c0b (patch)
tree20da62ee1cb063a60b7a7e4fa2d9081e11093265 /test/pending/neg
parentf81a4f92967a2dd69784864e9ab9e1624d7db35b (diff)
downloadscala-de12ca6ef8071820c6b2a9403ccab9aa6ed51c0b.tar.gz
scala-de12ca6ef8071820c6b2a9403ccab9aa6ed51c0b.tar.bz2
scala-de12ca6ef8071820c6b2a9403ccab9aa6ed51c0b.zip
SI-7486 Regressions in implicit search.
Revert e86832d7e8 and dd33e280e2.
Diffstat (limited to 'test/pending/neg')
-rw-r--r--test/pending/neg/t7441.check6
-rw-r--r--test/pending/neg/t7441.scala7
2 files changed, 13 insertions, 0 deletions
diff --git a/test/pending/neg/t7441.check b/test/pending/neg/t7441.check
new file mode 100644
index 0000000000..f259457197
--- /dev/null
+++ b/test/pending/neg/t7441.check
@@ -0,0 +1,6 @@
+t7441.scala:4: error: type mismatch;
+ found : Int(1)
+ required: List[Any]
+ def test = apply(1)
+ ^
+one error found
diff --git a/test/pending/neg/t7441.scala b/test/pending/neg/t7441.scala
new file mode 100644
index 0000000000..dad7421e3f
--- /dev/null
+++ b/test/pending/neg/t7441.scala
@@ -0,0 +1,7 @@
+object Test {
+ object Bar {
+ def apply(xs: List[Any]): Int = 0
+ def test = apply(1)
+ }
+ implicit def foo = 1
+}