You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is certainly confusing, but I don't think it is a bug. When you navigate .owner.owner, you get to the package class of the root package, not the root package itself. The package class is named TypeName("<root>"), whereas the root package is named TermName("_root_"). The term is the only one of these name that is designed to be referenced from user code, so it used underscores rather than <..>.
@Atry said (edited on Apr 3, 2016 5:31:43 PM UTC):
I found that there is a ROOT constant and Symbol.isRoot method in scala-compiler, however there is not such a constant or method in scala-reflect. How could a macro writer determine if a TermName is root without internal APIs?
The text was updated successfully, but these errors were encountered: