Simon,
ahh, that makes sense.
`zeroOrMore` is defined like this
def zeroOrMore(r: Rule[…]): Rule[…]
and, in a Parser, there are currently these implicits in scope:
/**
* Matches a character and pushes the associated value.
*/
implicit def charAndValue[T](t: (Char, T)): RuleN[...] = ...
/**
* Matches a string and pushes the associated value.
*/
implicit def stringAndValue[T](t: (String, T)): RuleN[...] = ...
which masked the problem in your case.
Looking at your use case I am now inclined to simply remove the `charAndValue` and `stringAndValue` helpers completely.
I am not even sure anymore why I put them in in the first place… :)
With these things gone you would have gotten the proper compiler error.
Thanks for reporting!
> To view this discussion on the web visit
https://groups.google.com/d/msgid/parboiled-user/747595be-00f9-4bd1-9fa5-38f44ae43597%40googlegroups.com.