File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
library/src/scala/tasty/util Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1168,14 +1168,14 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
11681168
11691169 object RootPackage {
11701170 def unapply (tpe : TypeOrBounds )(implicit ctx : Context ): Boolean = tpe match {
1171- case Type .SymRef (sym, _) => sym.fullName == " <root> " // TODO use Symbol.==
1171+ case Type .SymRef (sym, _) => sym == definitions. RootClass
11721172 case _ => false
11731173 }
11741174 }
11751175
11761176 object EmptyPackage {
11771177 def unapply (tpe : TypeOrBounds )(implicit ctx : Context ): Boolean = tpe match {
1178- case Type .SymRef (sym, _) => sym.fullName == " <empty> "
1178+ case Type .SymRef (sym, _) => sym == definitions. EmptyPackageClass
11791179 case _ => false
11801180 }
11811181 }
You can’t perform that action at this time.
0 commit comments