metals icon indicating copy to clipboard operation
metals copied to clipboard

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

Open jonbgamble opened this issue 1 year ago • 0 comments

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

jonbgamble avatar Oct 16 '24 15:10 jonbgamble