Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有一种方法可以使用 scaladoc 在 Object 类中引用 val 的名称,类似于
{@value #STATIC_FIELD}
在 javadoc 中。
你可以通过两种方式做到这一点:
package your.package_path object SomeObject extends App { val someList: List[Int] = List.empty[Int] /** * @see [[your.package_path.SomeObject#someList]] * @see [[someList]] * ... */ def bar(): String = ??? }