Skip to content

Commit 9bf9e9d

Browse files
committed
Fix wrong extractor
1 parent efb8115 commit 9bf9e9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/scala/tasty/util/ShowSourceCode.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,8 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
541541
printTypeTree(lo)
542542
this += " <: "
543543
printTypeTree(hi)
544-
case tpt@Type() =>
545-
printType(tpt)
544+
case tpt @ TypeTree() =>
545+
printTypeTree(tpt)
546546
}
547547

548548
def printTypeTree(tree: TypeTree): Buffer = tree match {

0 commit comments

Comments
 (0)