File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
library/src/scala/tasty/util Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -631,7 +631,9 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
631
631
632
632
case Type .TermRef (name, prefix) =>
633
633
prefix match {
634
- case prefix@ Type () =>
634
+ case Type .ThisType (Types .EmptyPackage ()) =>
635
+ this += name
636
+ case prefix @ Type () =>
635
637
printType(prefix)
636
638
if (name != " package" )
637
639
this += " ." += name
@@ -642,7 +644,7 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
642
644
643
645
case Type .TypeRef (name, prefix) =>
644
646
prefix match {
645
- case NoPrefix () =>
647
+ case NoPrefix () | Type . ThisType ( Types . EmptyPackage ()) =>
646
648
case prefix@ Type () =>
647
649
printType(prefix)
648
650
this += " ."
You can’t perform that action at this time.
0 commit comments