Skip to content
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

Specialized case class does not compile #10826

Open
Atry opened this issue Apr 12, 2018 · 0 comments
Open

Specialized case class does not compile #10826

Atry opened this issue Apr 12, 2018 · 0 comments

Comments

@Atry
Copy link

Atry commented Apr 12, 2018

Welcome to Scala 2.12.5 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_162).
Type in expressions for evaluation. Or try :help.

scala> case class C[A, @specialized B](handler: B => A)
<console>:11: error: type mismatch;
 found   : Byte => A(in class C$mcB$sp)
 required: Byte => A(in method copy$default$1$mcB$sp)
       case class C[A, @specialized B](handler: B => A)
                                       ^
@SethTisue SethTisue added this to the Backlog milestone Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants