We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In refined are examples that show compile errors in certain situations:
/** * Creates a `scala.util.matching.Regex` from a validated string. * * Example: {{{ * scala> import eu.timepit.refined.implicits._ * | import eu.timepit.refined.util.string.regex * * scala> regex(".*") * res1: scala.util.matching.Regex = .* * * scala> regex("{") * <console>:41: error: Predicate isValidRegex("{") failed: Illegal repetition * { * regex("{") * ^ * }}} */ def ...
The first example is verified by sbt-doctest but the second is not. It would be awesome if sbt-doctest could also verify non-compiling examples.
shapeless has something like this called illTyped which also can check the error message.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In refined are examples that show compile errors in certain situations:
The first example is verified by sbt-doctest but the second is not. It would be awesome if sbt-doctest could also verify non-compiling examples.
shapeless has something like this called illTyped which also can check the error message.
The text was updated successfully, but these errors were encountered: