Skip to content

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