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

javadocs are suppressed within an object that shadows an opaque/alias type. #6852

Open
schlawg opened this issue Oct 16, 2024 · 0 comments
Open

Comments

@schlawg
Copy link

schlawg commented Oct 16, 2024

Describe the bug

type Foo = String

object Foo:
  /** forever shrouded in mystery */
  val foo = ""

object Bar:
  /** all will be revealed */
  val bar = ""

Hovering foo reveals no javadoc, whereas the bar tooltip works fine. Note that the Bar object is not named after a type alias.

Expected behavior

Hovering foo should reveal forever shrouded in mystery.

Operating system

Linux

Editor/Extension

VS Code

Version of Metals

1.3.5

@schlawg schlawg changed the title an object shadowed by an opaque type or type alias consumes all javadocs javadocs are suppressed within an object that shadows an opaque/alias type. Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Triage
Development

No branches or pull requests

2 participants