Closed
Description
Compiler version
3.6.1-RC1-bin-20241011-5e7ab15-NIGHTLY
Minimized code
//> 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
or somewhere in Checking.scala
(maybe checkWellFormed
)