diff options
author | Martin Odersky <odersky@gmail.com> | 2005-12-02 18:58:51 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2005-12-02 18:58:51 +0000 |
commit | 1d724260bdae745cf6961a7fe15a501611cd2035 (patch) | |
tree | b2120e5ac629abfb6a54a6cc3131985bc06f1767 /test-nsc | |
parent | 7cd71254b00e2414235f5255869c4e752b8b4d10 (diff) | |
download | scala-1d724260bdae745cf6961a7fe15a501611cd2035.tar.gz scala-1d724260bdae745cf6961a7fe15a501611cd2035.tar.bz2 scala-1d724260bdae745cf6961a7fe15a501611cd2035.zip |
*** empty log message ***
Diffstat (limited to 'test-nsc')
-rwxr-xr-x | test-nsc/files/run/bugs.scala | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test-nsc/files/run/bugs.scala b/test-nsc/files/run/bugs.scala index 659b49f825..95e66877bd 100755 --- a/test-nsc/files/run/bugs.scala +++ b/test-nsc/files/run/bugs.scala @@ -303,6 +303,23 @@ object Bug250Test { // Bug 257 object Bug257Test { + def sayhello(): Unit = { Console.println("I should come 1st and 2nd"); }; + def sayhi(): Unit = { Console.println("I should come last"); }; + + def f1(x: Unit): Unit = (); + def f2(x: Unit)(y: Unit): Unit = (); + + def f(x: => Unit) = { + f1(x); + f2(x); + } + + def main(args: Array[String]): Unit = { + f(sayhello())(sayhi()) + } +} + +object Bug257Test { def sayhello(): Unit = { Console.println("hello"); }; def f1(x: Unit): Unit = (); |