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.3.1
object Test: class Custom extends scala.Product1[String]: def length: Int = ??? def apply(i: Int): Boolean = ??? def drop(n: Int): scala.Seq[Boolean] = ??? def toSeq: scala.Seq[Boolean] = ??? def canEqual(that: Any): Boolean = ??? val _1: String = ??? val _2: String = ??? val _3: Seq[String] = ??? object A: def unapplySeq(i: Int): Custom = ??? val A(a, rest*) = 1
this case is unreachable since type String is not a subclass of trait Seq val A(a, rest*) = 1
It should compile and A(a, rest*) should be a sequence-match.
A(a, rest*)
The specification states that sequence-matches have higher priority than product-sequence-matches, but this seems not to be correctly implemented
Note that the code compiles as expected if any of the _X fields is removed
_X
The text was updated successfully, but these errors were encountered:
dwijnand
Successfully merging a pull request may close this issue.
Compiler version
3.3.1
Minimized code
Output
Expectation
It should compile and
A(a, rest*)
should be a sequence-match.The specification states that sequence-matches have higher priority than product-sequence-matches, but this seems not to be correctly implemented
Note that the code compiles as expected if any of the
_X
fields is removedThe text was updated successfully, but these errors were encountered: