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
test("work with type alias") { type PositiveInt = Int Refined Positive @Validation case class Test(a: PositiveInt) // compilation fails assertEquals(Test.create(2), Validated.valid(Test(2))) assertEquals( Test.create(-2), Validated.invalidNec[String, Test]("For field Test.ref: Predicate failed: (-2 > 0).") ) }
create argument has type PositiveInt instead of int
create
PositiveInt
The text was updated successfully, but these errors were encountered:
field.tpt.tpe.dealias should help
field.tpt.tpe.dealias
Sorry, something went wrong.
No branches or pull requests
create
argument has typePositiveInt
instead of intThe text was updated successfully, but these errors were encountered: