metals
metals copied to clipboard
javadocs are suppressed within an object that shadows an opaque/alias type.
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