summaryrefslogtreecommitdiff
path: root/test/benchmark/sources/parsers/parsers.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/benchmark/sources/parsers/parsers.scala')
-rw-r--r--test/benchmark/sources/parsers/parsers.scala4
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