我希望能够在其他编译单元A中引用时检测到类型T的完整类型名称。所以说A是
package p
import com.p1.A
import com.p2._
class X {
def method1:A // detect it as com.p1.A, which I can do because of the import
def method2:B // detect it as com.p2.B, which I can't at the moment
}
我觉得scalameta可能不是最好的类型检测工具,是否有安全/简便的方法来检测所有类型?