Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b020bed

Browse files
minor code improvement
context: scala/scala#9303, but even if that never goes anywhere, this still seems like code improvement to me so we might as well
1 parent 33c788e commit b020bed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎shared/src/main/scala/scala/util/parsing/combinator/PackratParsers.scala‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ to update each parser involved in the recursion.
211211
case LR(seed ,rule, Some(head)) =>
212212
if(head.getHead != p) /*not head rule, so not growing*/ seed.asInstanceOf[ParseResult[T]]
213213
else {
214-
in.updateCacheAndGet(p, MemoEntry(Right[LR, ParseResult[T]](seed.asInstanceOf[ParseResult[T]])))
214+
in.updateCacheAndGet(p, MemoEntry(Right(seed.asInstanceOf[ParseResult[T]])))
215215
seed match {
216216
case f@Failure(_,_) => f
217217
case e@Error(_,_) => e

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /