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

showCode does not print class constructor modifiers #8875

Closed
scabug opened this issue Oct 2, 2014 · 2 comments
Closed

showCode does not print class constructor modifiers #8875

scabug opened this issue Oct 2, 2014 · 2 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Oct 2, 2014

scala> val name = TermName("foo")
name: reflect.runtime.universe.TermName = foo

scala> q"class Foo private[$name](bar: Bar)"
res10: reflect.runtime.universe.ClassDef =
class Foo extends scala.AnyRef {
  <paramaccessor> private[this] val bar: Bar = _;
  private[foo] def <init>(bar: Bar) = {
    super.<init>();
    ()
  }
}

scala> showCode(q"class Foo private[$name](bar: Bar)")
res11: String = class Foo(bar: Bar)
@scabug
Copy link
Author

scabug commented Oct 2, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8875?orig=1
Reporter: Nicolas Stucki (stucki153)
Affected Versions: 2.11.0

@scabug
Copy link
Author

scabug commented Oct 10, 2014

@gourlaysama said:
scala/scala#4045

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