Skip to content

Fix all warnings #28

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

Conversation

nicolasstucki
Copy link

No description provided.

@nicolasstucki
Copy link
Author

nicolasstucki commented Nov 23, 2017

Testing in scala/scala3#3541

@@ -478,7 +478,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
* Otherwise it's safe to call from multiple threads.
*/
def genConstant(const: Constant): Unit = {
(const.tag: @switch) match {
(const.tag/*: @switch*/) match {

Choose a reason for hiding this comment

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

It would be interesting to know why Dotty cannot emit a switch here but scalac can

Choose a reason for hiding this comment

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

My bad, scalac also emits the warning. However I don't see why neither scalac nor notty can emit a switch. I think the user would benefit from a bit more information in the warning

@nicolasstucki nicolasstucki merged commit 0c6b954 into lampepfl:sharing-backend Nov 24, 2017
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