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 @@ -628,7 +628,9 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
628
628
629
629
case Type .TermRef (name, prefix) =>
630
630
prefix match {
631
- case prefix@ Type () =>
631
+ case Type .ThisType (Types .EmptyPackage ()) =>
632
+ this += name
633
+ case prefix @ Type () =>
632
634
printType(prefix)
633
635
if (name != " package" )
634
636
this += " ." += name
@@ -639,7 +641,7 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
639
641
640
642
case Type .TypeRef (name, prefix) =>
641
643
prefix match {
642
- case NoPrefix () =>
644
+ case NoPrefix () | Type . ThisType ( Types . EmptyPackage ()) =>
643
645
case prefix@ Type () =>
644
646
printType(prefix)
645
647
this += " ."
You can’t perform that action at this time.
0 commit comments