summaryrefslogtreecommitdiff
path: root/test/files/run/bugs.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/bugs.scala')
-rw-r--r--test/files/run/bugs.scala20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/files/run/bugs.scala b/test/files/run/bugs.scala
index 326d229c0f..bb3bb7f1d8 100644
--- a/test/files/run/bugs.scala
+++ b/test/files/run/bugs.scala
@@ -295,6 +295,25 @@ object Bug250Test {
}
//############################################################################
+// Bug 257
+
+object Bug257Test {
+ def sayhello(): Unit = { System.out.println("hello"); };
+
+ def f1(x: Unit): Unit = ();
+ def f2(x: Unit)(y: Unit): Unit = ();
+
+ def f(def x: Unit) = {
+ f1(x);
+ f2(x);
+ }
+
+ def main(args: Array[String]): Unit = {
+ f(sayhello())
+ }
+}
+
+//############################################################################
// Bug 266
// version - A
@@ -388,6 +407,7 @@ object Test {
test(226, Bug226Test.main(args));
test(233, Bug233Test.main(args));
test(250, Bug250Test.main(args));
+ test(257, Bug257Test.main(args));
test(266, Bug266Test.main(args));
if (errors > 0) {