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
Similar to what happens with newtypes in #4, I guess this is related.
newtypes
This works:
type MyId = String Refined Uuid sealed trait Yay object Yay { case class Foo(x: Int) extends Yay case class Bar(y: MyId, z: String) extends Yay } Check[Yay]
This doesn't:
sealed trait Yay object Yay { type MyId = String Refined Uuid case class Foo(x: Int) extends Yay case class Bar(y: MyId, z: String) extends Yay } Check[Yay]
The text was updated successfully, but these errors were encountered:
This works too!
sealed trait Yay object Yay { case class Foo(x: Int) extends Yay case class Bar(y: String Refined Uuid, z: String) extends Yay } Check[Yay]
Sorry, something went wrong.
https://scastie.scala-lang.org/Z58Mw38RT7uaWRsSrfhNng
No branches or pull requests
Similar to what happens with
newtypes
in #4, I guess this is related.This works:
This doesn't:
The text was updated successfully, but these errors were encountered: