File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
shared/src/main/scala/scala/util/parsing/combinator Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -604,7 +604,7 @@ trait Parsers {
604604 * @param es the list of expected elements
605605 * @return a Parser that recognizes a specified list of elements
606606 */
607- def accept [ES <% List [ Elem ]] (es : ES ): Parser [List [Elem ]] = acceptSeq(es)
607+ def accept [ES ] (es : ES )( implicit f : ES => List [ Elem ] ): Parser [List [Elem ]] = acceptSeq(es)
608608
609609 /** The parser that matches an element in the domain of the partial function `f`.
610610 *
@@ -661,7 +661,7 @@ trait Parsers {
661661 * @param es the list of expected elements
662662 * @return a Parser that recognizes a specified list of elements
663663 */
664- def acceptSeq [ES <% Iterable [ Elem ]] (es : ES ): Parser [List [Elem ]] =
664+ def acceptSeq [ES ] (es : ES )( implicit f : ES => Iterable [ Elem ] ): Parser [List [Elem ]] =
665665 es.foldRight[Parser [List [Elem ]]](success(Nil )){(x, pxs) => accept(x) ~ pxs ^^ mkList}
666666
667667 /** A parser that always fails.
You can’t perform that action at this time.
0 commit comments