Fix for combinator regression.
Propagate Error in repN. I have no time for a test case, I will gladly take a contribution. References SI-1100, Closes SI-5108, No review. git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25881 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
590435dd1b
commit
ec9f0a68c3
|
|
@ -645,6 +645,7 @@ trait Parsers {
|
|||
val p0 = p // avoid repeatedly re-evaluating by-name parser
|
||||
@tailrec def applyp(in0: Input): ParseResult[List[T]] = p0(in0) match {
|
||||
case Success(x, rest) => elems += x ; applyp(rest)
|
||||
case e @ Error(_, _) => e // still have to propagate error
|
||||
case _ => Success(elems.toList, in0)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue