summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-05-10 10:09:42 -0700
committerPaul Phillips <paulp@improving.org>2013-05-10 10:09:42 -0700
commitfb99a1ed30b5cb1f050d67c22beffb7f8b68d701 (patch)
tree06ca71b5f46889b17fa1ce0f9c75ac0128709281 /test/files
parent5c77e01794434b2fa01a1bd250c08198c31796e3 (diff)
parente86832d7e845014dd272b71e2c12f0eedd55e85a (diff)
downloadscala-fb99a1ed30b5cb1f050d67c22beffb7f8b68d701.tar.gz
scala-fb99a1ed30b5cb1f050d67c22beffb7f8b68d701.tar.bz2
scala-fb99a1ed30b5cb1f050d67c22beffb7f8b68d701.zip
Merge pull request #2488 from paulp/issue/7441
SI-7441 Don't ramble on about inapplicable implicits.
Diffstat (limited to 'test/files')
-rw-r--r--test/files/neg/t7441.check6
-rw-r--r--test/files/neg/t7441.scala7
2 files changed, 13 insertions, 0 deletions
diff --git a/test/files/neg/t7441.check b/test/files/neg/t7441.check
new file mode 100644
index 0000000000..f259457197
--- /dev/null
+++ b/test/files/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/files/neg/t7441.scala b/test/files/neg/t7441.scala
new file mode 100644
index 0000000000..dad7421e3f
--- /dev/null
+++ b/test/files/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
+}