We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fef9331 commit 2775891Copy full SHA for 2775891
shared/src/main/scala/scala/util/parsing/combinator/PackratParsers.scala
@@ -107,7 +107,7 @@ trait PackratParsers extends Parsers {
107
val q = super.phrase(p)
108
new PackratParser[T] {
109
def apply(in: Input) = in match {
110
- case in: PackratReader[_] => q(in)
+ case in if in.isInstanceOf[PackratReader[_]] => q(in)
111
case in => q(new PackratReader(in))
112
}
113
0 commit comments