Skip to content

Add Typeable test #9840

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

Merged
merged 1 commit into from
Sep 23, 2020
Merged

Add Typeable test #9840

merged 1 commit into from
Sep 23, 2020

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Sep 21, 2020

This is a demonstrator how to get typesafe pattern matches using a Typeable class like the one in shapeless

@nicolasstucki
Copy link
Contributor

Note that this will not help with the Reflection API due to flexibility and soundness issues (see #7554 (comment)).

@odersky
Copy link
Contributor Author

odersky commented Sep 23, 2020

Note that this will not help with the Reflection API due to flexibility and soundness issues (see #7554 (comment)).

Noted. I'll add the test anyway since it explores a corner case of unapplies with type parameters.

@odersky odersky merged commit 03a02de into scala:master Sep 23, 2020
@odersky odersky deleted the add-typeable branch September 23, 2020 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants