Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. def parseA[_: P] = P("a")
  2.  
  3. val Parsed.Success(value, successIndex) = parse("a", parseA(_))
  4.  
  5. val Parsed.Success(value, successIndex) = parse("a", P("a"))
  6.  
  7. Error:(8, 61) overloaded method value P with alternatives:
  8. [T](t: fastparse.P[T])(implicit name: sourcecode.Name, implicit ctx: fastparse.P[_])fastparse.P[T] <and>
  9. => fastparse.ParsingRun.type
  10. cannot be applied to (String)
  11. Error occurred in an application involving default arguments.
  12. val Parsed.Success(value, successIndex) = parse(source, P("a"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement