Skip to content

Commit dd4721c

Browse files
hamzaremmalWojciechMazur
authored andcommitted
chore: do not render consume update in scaladoc
[Cherry-picked fe8937d]
1 parent d4fa8e4 commit dd4721c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scaladoc/src/dotty/tools/scaladoc/tasty/ClassLikeSupport.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ trait ClassLikeSupport:
2525
def getExtraModifiers(): Seq[Modifier] =
2626
var mods = SymOps.getExtraModifiers(symbol)()
2727
if ccEnabled && symbol.flags.is(Flags.Mutable) then
28-
mods :+= Modifier.Update
29-
if ccEnabled && symbol.hasAnnotation(cc.CaptureDefs.ConsumeAnnot) then
30-
mods :+= Modifier.Consume
28+
if symbol.hasAnnotation(cc.CaptureDefs.ConsumeAnnot) then
29+
mods :+= Modifier.Consume
30+
else
31+
mods :+= Modifier.Update
3132
mods
3233
}
3334

0 commit comments

Comments
 (0)