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

-Ywarn-dead-code produces spurious warnings for bundles #8523

Closed
scabug opened this issue Apr 21, 2014 · 3 comments
Closed

-Ywarn-dead-code produces spurious warnings for bundles #8523

scabug opened this issue Apr 21, 2014 · 3 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Apr 21, 2014

import scala.language.experimental.macros
import scala.reflect.macros.blackbox.Context

class Impl(val c: Context) {
  def impl: c.Tree = ???
}

object Macros {
  def foo: Any = macro Impl.impl
}
23:29 ~/Projects/Master/sandbox (master)$ s -Ywarn-dead-code
Test.scala:9: warning: dead code following this construct
  def foo: Any = macro Impl.impl
                            ^
one warning found
@scabug
Copy link
Author

scabug commented Apr 21, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8523?orig=1
Reporter: @xeno-by
Affected Versions: 2.11.0

@scabug
Copy link
Author

scabug commented Apr 21, 2014

@xeno-by said:
scala/scala#3689

1 similar comment
@scabug
Copy link
Author

scabug commented May 14, 2014

@xeno-by said:
scala/scala#3689

@scabug scabug closed this as completed May 14, 2014
@scabug scabug added this to the 2.11.1 milestone Apr 7, 2017
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

2 participants