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

case objects always produce dead code warnings #6513

Closed
scabug opened this issue Oct 11, 2012 · 3 comments
Closed

case objects always produce dead code warnings #6513

scabug opened this issue Oct 11, 2012 · 3 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Oct 11, 2012

$ scala -Ywarn-dead-code
Welcome to Scala version 2.10.0-M7 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_35).
Type in expressions to have them evaluated.
Type :help for more information.

scala> case object Foo
<console>:7: warning: dead code following this construct
       case object Foo
                   ^
defined module Foo
@scabug
Copy link
Author

scabug commented Oct 11, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6513?orig=1
Reporter: @jroper
Affected Versions: 2.10.0-M7

@scabug
Copy link
Author

scabug commented Oct 11, 2012

@jroper said:
I just found out this affects zero parameter case classes too:

scala> case class Foo()
<console>:7: warning: dead code following this construct
       case class Foo()
                  ^
defined class Foo

@scabug
Copy link
Author

scabug commented Feb 21, 2013

@paulp said:
Fixed by Jason in 673cc83f19.

@scabug scabug closed this as completed Feb 21, 2013
@scabug scabug added this to the 2.11.0-M2 milestone Apr 7, 2017
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