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

Difference in erasure between dotc and scalac #2920

Closed
Jasper-M opened this issue Jul 26, 2017 · 3 comments
Closed

Difference in erasure between dotc and scalac #2920

Jasper-M opened this issue Jul 26, 2017 · 3 comments

Comments

@Jasper-M
Copy link
Contributor

Jasper-M commented Jul 26, 2017

sealed trait Foo
object Foo { type A }

Scalac erases the type Foo.A with Foo to Object. Dotc erases it to Foo.

I'm not sure if that would be considered a bug, but I was told differences in behavior between scala and dotty should be documented regardless.

@odersky
Copy link
Contributor

odersky commented Jan 15, 2018

I believe at some point scalac behaved like Dotty. Maybe @retronym can reconstruct why that got changed. It would be important to use the same algorithm for binary compatibility.

@odersky odersky self-assigned this Jan 15, 2018
@smarter
Copy link
Member

smarter commented Jan 26, 2019

#4619 is a duplicate but has a bit more details so closing this one.

@smarter smarter closed this as completed Jan 26, 2019
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

4 participants