diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/bugs.check | 5 | ||||
-rw-r--r-- | test/files/run/bugs.scala | 20 |
2 files changed, 25 insertions, 0 deletions
diff --git a/test/files/run/bugs.check b/test/files/run/bugs.check index f8820edba7..bdada64123 100644 --- a/test/files/run/bugs.check +++ b/test/files/run/bugs.check @@ -66,6 +66,11 @@ true <<< bug 250 >>> bug 250 +<<< bug 257 +hello +hello +>>> bug 257 + <<< bug 266 hello 4 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) { |