Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions compiler/src/dotty/tools/dotc/transform/CheckUnused.scala
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ class CheckUnused private (phaseMode: PhaseMode, suffix: String) extends MiniPha
selector.bound match
case untpd.TypedSplice(bound) => transformAllDeep(bound)
case _ =>
case exp: Export =>
transformAllDeep(exp.expr)
case AppliedTypeTree(tpt, args) =>
transformAllDeep(tpt)
args.foreach(transformAllDeep)
Expand Down
10 changes: 10 additions & 0 deletions tests/warn/i22983.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//> using options -Werror -Wunused:imports

object test1:
object foo:
type X = Int

object test2:
import test1.foo

export foo.X