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

scaladoc refuses scaladoc comments in early initializers #7767

Closed
scabug opened this issue Aug 20, 2013 · 3 comments
Closed

scaladoc refuses scaladoc comments in early initializers #7767

scabug opened this issue Aug 20, 2013 · 3 comments

Comments

@scabug
Copy link

@scabug scabug commented Aug 20, 2013

This will be particularly annoying once the IDE integrates scaladoc support.

class PreSuper extends {
  /** bar */
  val foo = new Object
} with Object {}

it shows:

scaladoc.scala:4: error: only type definitions and concrete field definitions allowed in early object initialization section
  /** bar */
  ^
@scabug
Copy link
Author

@scabug scabug commented Aug 20, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7767?orig=1
Reporter: @dragos
Other Milestones: 2.11.0-M6

@scabug
Copy link
Author

@scabug scabug commented Sep 3, 2013

@dotta said:
Can this be targeted for 2.11.0?

@scabug scabug closed this Sep 10, 2013
@scabug
Copy link
Author

@scabug scabug commented Sep 10, 2013

@huitseeker said:
Fixed in scala/scala#2922

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