-
Notifications
You must be signed in to change notification settings - Fork 85
Open
Description
Compile fails with message:
Error:scalac: unexpected UnApply collection.this.Seq.unapplySeq[String](<unapply-selector>) <unapply> ((single @ _))
import org.parboiled2.{Rule1, CharPredicate, ParserInput, Parser}
class SeqMatch(val input: ParserInput) extends Parser {
def id: Rule1[String] = rule {
capture(CharPredicate.Printable -- '.')
}
def root = rule {
(id + '.') ~> {
(ids: Seq[String]) =>
ids match {
case Seq(single) => MATCH
case _ => MISMATCH
}
}
}
}
Metadata
Metadata
Assignees
Labels
No labels