-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Tuple.Union doesn't work if all types in a tuple are singletons #10897
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
Labels
Comments
Was wondering the other day in gitter what was wrong with your code. 😄 |
Just wondering if there is a timeline of this being fixed in future releases? |
anatoliykmetyuk
added a commit
to dotty-staging/dotty
that referenced
this issue
Jun 16, 2021
Fix scala#9769 Fix scala#9833 Fix scala#10389 Fix scala#10897 Fix scala#11163 Fix scala#11556 Fix scala#12474 Fix scala#10994 Fix scala#11729
This still seems to have issues in other areas, i.e the following doesn't compile import Tuple.Union
type Channel = "orders" | "trades"
def getChannelList[Channels <: NonEmptyTuple](c: Channels)(using Union[Channels] <:< Channel) =
val channels: List[Channel] = c.toList
channels |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Minimized code
Output
Expectation
Tuple.Union
should work for tuples containing any typesThe text was updated successfully, but these errors were encountered: