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