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
3.1.3-RC2
https://scastie.scala-lang.org/oNFJgavuT4ipVnIKcsgUbg
match may not be exhaustive. It would fail on pattern case: ProjectionState(_1, _2)
No warnings expected as match is complete?
The text was updated successfully, but these errors were encountered:
more minimized example
class Projection { type State = String } sealed trait ProjectionState { val a: Projection val b: a.State } object ProjectionState { def apply(first: Projection, second: first.State): ProjectionState = new ProjectionState { override final val a: first.type = first override final val b: second.type = second } def unapply(pj: ProjectionState): Some[(pj.a.type, pj.b.type)] = Some(pj.a -> pj.b) } val projectionStates = ProjectionState(Projection(), "string") match { case ProjectionState(p, s) => () }
Sorry, something went wrong.
dwijnand
Successfully merging a pull request may close this issue.
Compiler version
3.1.3-RC2
Minimized code
https://scastie.scala-lang.org/oNFJgavuT4ipVnIKcsgUbg
Output
Expectation
No warnings expected as match is complete?
The text was updated successfully, but these errors were encountered: