How do I link variables inside another object in scaladocs?
问题 To link another class, I can use [[package.Classname]] . Linking functions defined by def works as well, but trying to link variables doesn't work. What I've tried: object Foo { val BAR = 0 } object Example { /** * Does the thing with [[Foo.BAR]] */ def doTheThing(): Unit = { } } I've also tried [[Foo#BAR]] (from another post) instead of [[Foo.BAR]] , which fails as well. What's the proper way to link variables in scaladoc? 回答1: The right way to go is what you have already tried: /** * Does