summaryrefslogtreecommitdiff
path: root/test/files/neg/t5801.scala
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@gmail.com>2012-05-16 17:39:29 +0200
committerHubert Plociniczak <hubert.plociniczak@gmail.com>2012-05-18 10:36:40 +0200
commit7490250efe8e7b59be9d168048f40344b3066b61 (patch)
tree66813e2778b56926bdbecd80779925562b36c727 /test/files/neg/t5801.scala
parent97046e6cbe8dfc5d5b672d1a490071b68cbdad9a (diff)
downloadscala-7490250efe8e7b59be9d168048f40344b3066b61.tar.gz
scala-7490250efe8e7b59be9d168048f40344b3066b61.tar.bz2
scala-7490250efe8e7b59be9d168048f40344b3066b61.zip
Fixes SI-5801, error messages regression. Review by @adriaanm
Diffstat (limited to 'test/files/neg/t5801.scala')
-rw-r--r--test/files/neg/t5801.scala16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/neg/t5801.scala b/test/files/neg/t5801.scala
new file mode 100644
index 0000000000..d452222ac8
--- /dev/null
+++ b/test/files/neg/t5801.scala
@@ -0,0 +1,16 @@
+import scala.sth
+
+object Test extends App {
+ def foo(a: Int)(implicit b: sth.Sth): Unit = {}
+ foo(1)
+
+ def bar(x: Int)(implicit y: Int): sth.Sth = null
+ bar(1)
+
+ def meh(x: Int)(implicit a: sth.Sth, b: Int): Unit = {}
+ meh(1)
+
+ def meh2(x: Int)(implicit b: Int, a: sth.Sth): Unit = {}
+ meh2(1)
+}
+