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 · 7 comments
Closed

don't issue deprecation warnings for synthetic TypeTrees #7783

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

Comments

@scabug
Copy link

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 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 commented Aug 26, 2013

@scabug
Copy link
Author

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 commented Sep 24, 2013

@scabug
Copy link
Author

scabug commented Sep 25, 2013

@retronym said:
scala/scala#2986

@som-snytt
Copy link

scala/scala#2985

Correction or rather justice arrives ten years later.

@som-snytt
Copy link

My second time this year visiting this ticket after reading the code comment.

Thanks for updating the link to the PR!

@scala scala deleted a comment from scabug Aug 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants