-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
area:lintingLinting warnings enabled with -W or -XlintLinting warnings enabled with -W or -XlintbacklogNo work planned on this by the core team for the time being.No work planned on this by the core team for the time being.help wanteditype:bugitype:enhancement
Milestone
Description
Compiler version
3.3.0
, 3.3.1-RC4
Minimized code
With -Wunused:all
@main def run(): Unit =
val dummy = 1
for x <- Option(1)
yield dummy
or
@main def run(): Unit =
for
x <- Option(1)
y <- Option(2)
yield y
Output
The code compiles without warnings
Expectation
The code produces an unused local definition
warning for an x
variable.
dzanot, mbovel and lenguyenthanh
Metadata
Metadata
Assignees
Labels
area:lintingLinting warnings enabled with -W or -XlintLinting warnings enabled with -W or -XlintbacklogNo work planned on this by the core team for the time being.No work planned on this by the core team for the time being.help wanteditype:bugitype:enhancement