We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using the scalac flag -Ywarn-unused produces the following error message on unused private lazy variables:
object Test { private lazy val bool = true def main(args: Array[String]) { println("stuff") } } $scalac -Ywarn-unused Test.scala Test.scala:3: warning: private method in object Test is never used private lazy val bool = true ^
I feel the error message should read "private val in object Test is never used"
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-8398?orig=1 Reporter: Eric Hartsuyker (ehartsuyker) Affected Versions: 2.11.0-M8
Sorry, something went wrong.
@gkossakowski said: The 2.11.2 is out so I'm rescheduling the issue for 2.11.3.
@gkossakowski said: Fixed by scala/scala#3968
No branches or pull requests
Using the scalac flag -Ywarn-unused produces the following error message on unused private lazy variables:
I feel the error message should read "private val in object Test is never used"
The text was updated successfully, but these errors were encountered: