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
unapply
3.1.0
object Bar: def unapply(x: Any): Int *: Int *: EmptyTuple = ??? // Works it returns a `Tuple2[Int, Int]` def test = "" match case Bar(a, b) =>
10 | case Bar(a, b) => | ^^^^^^^^^ | Wrong number of argument patterns for Bar; expected: ()
Should be supported.
The text was updated successfully, but these errors were encountered:
This doesn't work because Tuple's product arity is 0 ("expected: ()"). I guess we need to teach productArity to walk the type to count the arity.
productArity
Sorry, something went wrong.
It seems that in the example of #13968 we do calculate the arity correctly. We should see how it is handled there and why it was not done here.
Duplicate of #11008
No branches or pull requests
Compiler version
3.1.0
Minimized example
Output
Expectation
Should be supported.
The text was updated successfully, but these errors were encountered: