-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Practical Tuple type errors #13817
New issue
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
Comments
|
Though this fails with val a: Int *: EmptyTuple = ???
val ab: (Int, Int, Int) = ???
val a_new = ab.take(a.size) |
Thanks for that update, that indeed works on The second part (
though I can not bring this compiler note back to my code. Note this may be of similar nature to #13800. |
Compiler version
3.0.2
Minimized code
Output
For the runtime version:
For the first proof:
Expectation
Not sure if I faithfully reduced the problem, but I expected all three to succeed.
In context
I want to drop the
.asInstanceOf
in the following example:but doing this for the left yields:
even though
Tuple.Take[Tuple.Concat[D, G], (?1 : Tuple.Size[D])]
logically reduces toD
.The text was updated successfully, but these errors were encountered: