package p /** * @define BaseComment This is $BaseVar comment. */ trait Base { /** * Base method has documentation. */ def foo: String }