Skip to content

Commit 3d4e683

Browse files
committed
Use isImplicitFunctionType
1 parent 853e904 commit 3d4e683

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/tasty/reflect/Printers.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ trait Printers
834834
case Apply(fn, args) =>
835835
fn match {
836836
case Select(This(_), "<init>") => this += "this" // call to constructor inside a constructor
837-
case Select(qual, "apply") if qual.tpe.classSymbol.exists(_.name.startsWith("ImplicitFunction")) =>
837+
case Select(qual, "apply") if qual.tpe.isImplicitFunctionType =>
838838
printTree(qual) += " given "
839839
case _ => printQualTree(fn)
840840
}

0 commit comments

Comments
 (0)