Skip to content

Commit

Permalink
Filter opaque modifier from object documentation
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Bovel <[email protected]>

[Cherry-picked 4ae882f]
  • Loading branch information
HarrisL2 authored and WojciechMazur committed Dec 4, 2024
1 parent 3ce240e commit 051f2cb
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 051f2cb

Please sign in to comment.