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 80940d4 commit 9b5cc10Copy full SHA for 9b5cc10
shared/src/test/scala/scala/util/parsing/combinator/PackratParsersTest.scala
@@ -222,7 +222,7 @@ private object grammars3 extends StandardTokenParsers with PackratParsers {
222
| success(Nil)
223
)
224
225
- @annotation.nowarn // Some(xs) in pattern isn't exhaustive
+ @annotation.nowarn("cat=other-match-analysis")
226
def repMany1[T](p: => Parser[T], q: => Parser[T]): Parser[List[T]] =
227
p~opt(repMany(p,q))~q ^^ {case x~Some(xs)~y => x::xs:::(y::Nil)}
228
0 commit comments