Skip to content

Commit 45675d8

Browse files
committed
Make sure objects don't get final modifier
1 parent c160cda commit 45675d8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc-tool/src/dotty/tools/dottydoc/model/internal.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,15 @@ object internal {
8686
annotations: List[String],
8787
name: String,
8888
members: List[Entity],
89-
modifiers: List[String],
89+
private val mods: List[String],
9090
path: List[String],
9191
superTypes: List[MaterializableLink] = Nil,
9292
var comment: Option[Comment] = None,
9393
var companionPath: List[String] = Nil,
9494
var parent: Entity = NonEntity
95-
) extends Object
95+
) extends Object {
96+
def modifiers: List[String] = mods.filterNot(_ == "private")
97+
}
9698

9799
final case class DefImpl(
98100
symbol: Symbol,

0 commit comments

Comments
 (0)