Skip to content

Commit

Permalink
Filter opaque modifier from object documentation (#21640)
Browse files Browse the repository at this point in the history
Fixes #21228
  • Loading branch information
mbovel authored Sep 24, 2024
2 parents e5f7272 + 4ae882f commit 3f4fee2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion scaladoc-testcases/src/tests/opaqueTypes.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ opaque type Permissions
= Int
opaque type PermissionChoice
= Int
//opaque type Permission <: Permissions & PermissionChoice = Int TODO: #112
//opaque type Permission <: Permissions & PermissionChoice = Int TODO: #112

object Foo:
opaque type Bar
= Int
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ trait ClassLikeSupport:
def parseObject(classDef: ClassDef, signatureOnly: Boolean = false): Member =
mkClass(classDef)(
// All objects are final so we do not need final modifier!
modifiers = classDef.symbol.getExtraModifiers().filter(_ != Modifier.Final),
modifiers = classDef.symbol.getExtraModifiers().filter(mod => mod != Modifier.Final && mod != Modifier.Opaque),
signatureOnly = signatureOnly
)

Expand Down

0 comments on commit 3f4fee2

Please sign in to comment.