open object
is allowed despite not doing anything
#21760
Labels
Milestone
open object
is allowed despite not doing anything
#21760
Compiler version
3.6.1-RC1-bin-20241011-5e7ab15-NIGHTLY
Minimized code
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 inChecking.scala
(maybecheckWellFormed
)The text was updated successfully, but these errors were encountered: