-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Append instead of prepending import selectors for the current scope w…
…hen collecting them in CheckUnused (#22314) Also make the wildcard selectors exclusion-aware in CheckUnused closes #21420
- Loading branch information
1 parent
a5a9fc8
commit af655c9
Showing
2 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//> using options -Wunused:imports | ||
|
||
object decisions4s{ | ||
trait HKD | ||
trait DecisionTable | ||
} | ||
|
||
object DiagnosticsExample { | ||
import decisions4s.HKD | ||
val _ = new HKD {} | ||
import decisions4s.* | ||
val _ = new DecisionTable {} | ||
} |