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

don't issue deprecation warnings for synthetic TypeTrees #7783

Closed
scabug opened this issue Aug 26, 2013 · 6 comments
Closed

don't issue deprecation warnings for synthetic TypeTrees #7783

scabug opened this issue Aug 26, 2013 · 6 comments
Assignees
Milestone

Comments

@scabug
Copy link

@scabug scabug commented Aug 26, 2013

scala> object O { class C; @deprecated("", "") type D = C; def foo: Seq[D] = Nil }
<console>:33: warning: type D in object O is deprecated:
       object O { class C; @deprecated("", "") type D = C; def foo: Seq[D] = Nil }
                                                                    ^
defined object O

scala> O.foo ++: Nil
<console>:34: warning: type D in object O is deprecated:
       val res2 =
           ^
<console>:35: warning: type D in object O is deprecated:
              O.foo ++: Nil
                    ^
res2: List[O.D] = List()

In Scala 2.9:

scala> O.foo ++: Nil
<console>:29: warning: type D in object O is deprecated: scala.this.deprecated.init$default$1
       val res1 =
           ^
<console>:30: warning: type D in object O is deprecated: scala.this.deprecated.init$default$1
              O.foo ++: Nil
                    ^
@scabug
Copy link
Author

@scabug scabug commented Aug 26, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7783?orig=1
Reporter: @retronym
Affected Versions: 2.9.0-1, 2.10.0

@scabug
Copy link
Author

@scabug scabug commented Aug 26, 2013

@scabug
Copy link
Author

@scabug scabug commented Aug 26, 2013

@retronym said:
I guess this change is debatable. I encountered it when using SBT 0.13; some plugins used a deprecated type alias and I incurred the wrath of the deprecation patrol.

@scabug
Copy link
Author

@scabug scabug commented Sep 24, 2013

@scabug
Copy link
Author

@scabug scabug commented Sep 25, 2013

1 similar comment
@scabug
Copy link
Author

@scabug scabug commented Sep 25, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants