summaryrefslogtreecommitdiff
path: root/test/files/run/packrat3.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-05-06 15:38:18 +0000
committerPaul Phillips <paulp@improving.org>2009-05-06 15:38:18 +0000
commit98be3213152ccec134da3e7856b8096beafcc6d8 (patch)
tree8e6cb835f6ff31843ef9787cc1b551b099eb806b /test/files/run/packrat3.scala
parent5b1da4217f7f36eab1ba14b5b95667de5bda09ed (diff)
downloadscala-98be3213152ccec134da3e7856b8096beafcc6d8.tar.gz
scala-98be3213152ccec134da3e7856b8096beafcc6d8.tar.bz2
scala-98be3213152ccec134da3e7856b8096beafcc6d8.zip
Added NoSuccess extractor to combinator lib.
Diffstat (limited to 'test/files/run/packrat3.scala')
-rw-r--r--test/files/run/packrat3.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/files/run/packrat3.scala b/test/files/run/packrat3.scala
index 34695ef2ed..09acb6e7ff 100644
--- a/test/files/run/packrat3.scala
+++ b/test/files/run/packrat3.scala
@@ -27,8 +27,7 @@ object grammars3 extends StandardTokenParsers with PackratParsers {
def extractResult(r: ParseResult[_]) = r match {
case Success(a,_) => a
- case Failure(a,_) => a
- case Error(a,_) => a
+ case NoSuccess(a,_) => a
}