Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading