Skip to content

Conversation

@maseev
Copy link
Contributor

@maseev maseev commented Oct 29, 2017

This PR is related to #1589. Specifically, it adds a new error message class for the following case Typer.scala:1427 (ctx.error("only static objects can extend scala.Phantom", cdef.pos))

Copy link
Member

@dottybot dottybot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, and thank you for opening this PR! 🎉

All contributors have signed the CLA, thank you! ❤️

Have an awesome day! ☀️

@maseev maseev changed the title Add a error message class for phantom types Add an error message class for phantom types Oct 29, 2017
@maseev
Copy link
Contributor Author

maseev commented Oct 29, 2017

That's interesting. For some reason a CI build failed on the clone phase 😟

@odersky
Copy link
Contributor

odersky commented Oct 29, 2017

Phantom types are most likely going to be removed from Dotty, being replaced by the "unused" PR #3342. So it's not a good time to improve error messages for them.

@maseev
Copy link
Contributor Author

maseev commented Oct 29, 2017

Wow, I didn't know that. If I'm not mistaken there are still a bunch of places in this issue related to the Phantom types. Maybe it would be a good idea to remove them from the list?

Should I close this PR for now?

@maseev maseev mentioned this pull request Oct 30, 2017
@maseev maseev deleted the iss1589-static-object-extend-phantom branch October 30, 2017 14:52
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.

4 participants