File tree 1 file changed +2
-2
lines changed
shared/src/main/scala/scala/util/parsing/combinator
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -604,7 +604,7 @@ trait Parsers {
604
604
* @param es the list of expected elements
605
605
* @return a Parser that recognizes a specified list of elements
606
606
*/
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)
608
608
609
609
/** The parser that matches an element in the domain of the partial function `f`.
610
610
*
@@ -661,7 +661,7 @@ trait Parsers {
661
661
* @param es the list of expected elements
662
662
* @return a Parser that recognizes a specified list of elements
663
663
*/
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 ]] =
665
665
es.foldRight[Parser [List [Elem ]]](success(Nil )){(x, pxs) => accept(x) ~ pxs ^^ mkList}
666
666
667
667
/** A parser that always fails.
You can’t perform that action at this time.
0 commit comments