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

Warn on any deprecated option option #11759

Open
som-snytt opened this issue Oct 3, 2019 · 0 comments

Comments

@som-snytt
Copy link

commented Oct 3, 2019

The language option should trigger deprecation, similarly for lint or optimizer options that may go out of fashion.

$ scalac -optimize -language:higherKinds -d /tmp -Xlint nodep.scala
warning: -optimize is deprecated: Since 2.12, enables -opt:l:inline -opt-inline-from:**. See -opt:help.
nodep.scala:2: warning: Unused import
import scala.language.higherKinds
                      ^
nodep.scala:6: warning: method f in object nope is deprecated:
class C { def c = nope.f }
                       ^
three warnings found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.