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

False "dead code" warning caused by repeated parameters #6339

Open
scabug opened this issue Sep 7, 2012 · 2 comments
Open

False "dead code" warning caused by repeated parameters #6339

scabug opened this issue Sep 7, 2012 · 2 comments
Labels
Milestone

Comments

@scabug
Copy link

scabug commented Sep 7, 2012

% cat S.scala
object O { def foo(xs: Int*) { }; foo(Nil: _*) }
% /usr/local/scala-2.9.2/bin/scalac -Ywarn-dead-code S.scala
S.scala:1: warning: dead code following this construct
object O { def foo(xs: Int*) { }; foo(Nil: _*) }
                                         ^
one warning found

I checked and the same bug is present in 2.10.0-M7.

Note that -Ywarn-dead-code is part of -Xlint.

@scabug
Copy link
Author

scabug commented Sep 7, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6339?orig=1
Reporter: @SethTisue
Affected Versions: 2.9.2, 2.10.0-M7

@scabug
Copy link
Author

scabug commented Sep 7, 2012

@paulp said:
The branch I point at in #6338 also takes warn-dead-code out of -Xlint.

@scabug scabug added this to the Backlog milestone Apr 7, 2017
@hrhino hrhino added the lint label Mar 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants