Skip to content

Respect -deprecation flag #5225

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
merged 4 commits into from
Oct 11, 2018
Merged

Conversation

liufengyun
Copy link
Contributor

Respect -deprecation flag

@@ -67,7 +67,7 @@ object Test {
package p6 {

class Refinements {
val y: { val x: T; type T } // error: deprecated warning: illegal forward reference in refinement; now illegal
val y: { val x: T; type T } // illegal forward reference in refinement; now illegal
Copy link
Contributor

Choose a reason for hiding this comment

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

We should move this test to tests/neg-custom-args/deprecation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Upon reflection, I think maybe we should always emit this warning, as it's a language feature warning.

@nicolasstucki nicolasstucki merged commit e7af2b2 into scala:master Oct 11, 2018
@nicolasstucki nicolasstucki deleted the fix-deprecation branch October 11, 2018 14:49
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.

4 participants