Skip to content

Commit ace9519

Browse files
committed
Do not print @inline as keyword inline is already printed
1 parent 0cb81b0 commit ace9519

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,7 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
948948
case Annotation(annot, _) =>
949949
annot.tpe match {
950950
case Type.TypeRef(_, Type.SymRef(PackageDef("internal", _), Type.ThisType(Type.SymRef(PackageDef("annotation", _), NoPrefix())))) => false
951+
case Type.TypeRef("inline", Types.ScalaPackage()) => false
951952
case _ => true
952953
}
953954
case x => throw new MatchError(x.show)

0 commit comments

Comments
 (0)