## Compiler version `3.6.1-RC1-bin-20241011-5e7ab15-NIGHTLY` ## Minimized code ```scala //> using scala 3.nightly open object O // no effect ``` ## Output Successful compilation. ## Expectation Warning or error that `open object`s trivially cannot be extended. ## Other info This check should most likely be done in [`Desugar.scala#checkModifiers`](https://github.com/scala/scala3/blob/fd0548e7325788126cf5b92d27001cdd9d4bb165/compiler/src/dotty/tools/dotc/ast/Desugar.scala#L1498) or somewhere in [`Checking.scala`](https://github.com/scala/scala3/blob/main/compiler/src/dotty/tools/dotc/typer/Checking.scala) (maybe [`checkWellFormed`](https://github.com/scala/scala3/blob/fd0548e7325788126cf5b92d27001cdd9d4bb165/compiler/src/dotty/tools/dotc/typer/Checking.scala#L498))