aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg-with-implicits/t5801.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg-with-implicits/t5801.scala')
-rw-r--r--tests/untried/neg-with-implicits/t5801.scala16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/untried/neg-with-implicits/t5801.scala b/tests/untried/neg-with-implicits/t5801.scala
new file mode 100644
index 000000000..d452222ac
--- /dev/null
+++ b/tests/untried/neg-with-implicits/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)
+}
+