Compiler version
3.6.0-RC1-bin-20240718-bd84584-NIGHTLY, 3.4.2
Minimized code
//> using scala 3.nightly
// opaqueobject.scala
object Sth:
opaque type A = Int
scala-cli doc opaqueobject.scala
Output
The object documentation also gets an opaque modifier.
The opaque type is documented correctly.

Expectation
The object documentation doesn't have an opaque modifier