diff options
author | mihaylov <mihaylov@epfl.ch> | 2005-08-26 15:17:13 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2005-08-26 15:17:13 +0000 |
commit | 7d50bd127a071b84cc3d5e6e989b5f57d5988aaf (patch) | |
tree | 4150782d52b5f6a541eed6b9b91dad0c0a93b82b /test | |
parent | bc6f997f0a06bf2c8b2e05d34623474a7f91a986 (diff) | |
download | scala-7d50bd127a071b84cc3d5e6e989b5f57d5988aaf.tar.gz scala-7d50bd127a071b84cc3d5e6e989b5f57d5988aaf.tar.bz2 scala-7d50bd127a071b84cc3d5e6e989b5f57d5988aaf.zip |
Use the new syntax for def parameters
Diffstat (limited to 'test')
-rw-r--r-- | test/benchmark/sources/parsers/parsers.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/benchmark/sources/parsers/parsers.scala b/test/benchmark/sources/parsers/parsers.scala index 0191afb716..57b79588bc 100644 --- a/test/benchmark/sources/parsers/parsers.scala +++ b/test/benchmark/sources/parsers/parsers.scala @@ -22,7 +22,7 @@ abstract class Parsers { /*** p &&& q applies first p, and if that succeeds, then q */ - def &&& (def q: Parser) = new Parser { + def &&& (q: => Parser) = new Parser { def apply(in: intype): Result = Parser.this.apply(in) match { case None => None case Some(in1) => q(in1) @@ -31,7 +31,7 @@ abstract class Parsers { /*** p ||| q applies first p, and, if that fails, then q. */ - def ||| (def q: Parser) = new Parser { + def ||| (q: => Parser) = new Parser { def apply(in: intype): Result = Parser.this.apply(in) match { case None => q(in) case s => s |