diff options
author | michelou <michelou@epfl.ch> | 2004-02-17 09:22:35 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2004-02-17 09:22:35 +0000 |
commit | d5d867cc1c12b2c8c1faf8ffcc2b253dbbf77b88 (patch) | |
tree | 1df05cec04bd48b0c735cf6bfbfb6b56fba80659 /sources/examples/parsers1.scala | |
parent | 429b2299ae431f5c87db2253586969dc023a0006 (diff) | |
download | scala-d5d867cc1c12b2c8c1faf8ffcc2b253dbbf77b88.tar.gz scala-d5d867cc1c12b2c8c1faf8ffcc2b253dbbf77b88.tar.bz2 scala-d5d867cc1c12b2c8c1faf8ffcc2b253dbbf77b88.zip |
- added return type to function apply in 'succe...
- added return type to function apply in 'succeeded'
Diffstat (limited to 'sources/examples/parsers1.scala')
-rw-r--r-- | sources/examples/parsers1.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/examples/parsers1.scala b/sources/examples/parsers1.scala index c5d877807e..4fb035020a 100644 --- a/sources/examples/parsers1.scala +++ b/sources/examples/parsers1.scala @@ -43,7 +43,7 @@ abstract class Parsers { } def succeed[a](x: a) = new Parser[a] { - def apply(in: intype) = Some(Pair(x, in)) + def apply(in: intype): Result = Some(Pair(x, in)) } def rep[a](p: Parser[a]): Parser[List[a]] = |