-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with "|" in the documentation #1093
Comments
The doc says
import sbt._
import complete.DefaultParsers._ |
Of course I imported them. Otherwise the error would be different. |
I'm able to reproduce the problem ( import complete.DefaultParsers._
import complete.Parser
val color: Parser[String] = "blue" | "green" note that I had to add ( I poked around further trying to find a fix but but failed 🤷 |
steps
val color: Parser[String] = "blue" | "green"
in sbt console or in build.sbtproblem
error: value | is not a member of String
expectation
A parser that succeeds if the input is "blue" or "green" as wrote in the documentation.
notes
sbt 1.2.8, 1.6.2
scala 2.12.10
The text was updated successfully, but these errors were encountered: