Skip to content

Commit 2775891

Browse files
committed
Check type using isInstanceOf
1 parent fef9331 commit 2775891

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ trait PackratParsers extends Parsers {
107107
val q = super.phrase(p)
108108
new PackratParser[T] {
109109
def apply(in: Input) = in match {
110-
case in: PackratReader[_] => q(in)
110+
case in if in.isInstanceOf[PackratReader[_]] => q(in)
111111
case in => q(new PackratReader(in))
112112
}
113113
}

0 commit comments

Comments
 (0)