-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
SpreeSuitable for a future SpreeSuitable for a future Spreearea:lintingLinting warnings enabled with -W or -XlintLinting warnings enabled with -W or -Xlintitype:bug
Milestone
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
)
Metadata
Metadata
Assignees
Labels
SpreeSuitable for a future SpreeSuitable for a future Spreearea:lintingLinting warnings enabled with -W or -XlintLinting warnings enabled with -W or -Xlintitype:bug