Skip to content

Commit 5416002

Browse files
committed
Add missing implicit keyword
1 parent 09e6599 commit 5416002

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
6868
printDefAnnotations(cdef)
6969

7070
val flags = cdef.flags
71+
if (flags.isImplicit) this += "implicit "
7172
if (flags.isFinal && !flags.isObject) this += "final "
7273
if (flags.isCase) this += "case "
7374

@@ -157,6 +158,7 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
157158
printDefAnnotations(vdef)
158159

159160
val flags = vdef.flags
161+
if (flags.isImplicit) this += "implicit "
160162
if (flags.isOverride) this += "override "
161163

162164
if (flags.isLazy) this += "lazy "
@@ -210,7 +212,8 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
210212
printDefAnnotations(ddef)
211213

212214
val flags = ddef.flags
213-
if (flags.isOverride) sb.append("override ")
215+
if (flags.isImplicit) this += "implicit "
216+
if (flags.isOverride) this += "override "
214217

215218
this += "def " += name
216219
printTargsDefs(targs)

0 commit comments

Comments
 (0)