-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed as not planned
Labels
area:lintingLinting warnings enabled with -W or -XlintLinting warnings enabled with -W or -Xlintitype:bugstat:fixed in nightlyThis issue may be present in the latest stable or RC version of Next, but has been since fixed.This issue may be present in the latest stable or RC version of Next, but has been since fixed.
Description
Another report, to save my damaged reputation after #22690 fiasco. 😘
Compiler version
3.6.4-RC1, 3.6.4-RC2
Minimized code
import javax.swing.*
import javax.swing.event as swingEvent
type b = AbstractButton
type t = swingEvent.AncestorListener
Output
C:\Dev\Sandbox\src\main\scala\Main.scala:2:26
unused import
import javax.swing.event as swingEvent
Expectation
The import is not unused, the code does not compile without it.
See also this Scastie: https://scastie.scala-lang.org/OndrejSpanel/bHJcv9AhSS2DODsdcQFvAw/17
Note
Replacing wildcard import on the first line makes the error go away, this compiles fine:
import javax.swing.AbstractButton
import javax.swing.event as swingEvent
type b = AbstractButton
type t = swingEvent.AncestorListener
Metadata
Metadata
Assignees
Labels
area:lintingLinting warnings enabled with -W or -XlintLinting warnings enabled with -W or -Xlintitype:bugstat:fixed in nightlyThis issue may be present in the latest stable or RC version of Next, but has been since fixed.This issue may be present in the latest stable or RC version of Next, but has been since fixed.