File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
compiler/src/dotty/tools/dotc/transform
tests/neg-custom-args/fatal-warnings Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ class CheckUnused extends Phase:
69
69
tree match
70
70
case imp: tpd.Import =>
71
71
unusedDataApply(_.registerImport(imp))
72
+ traverseChildren(tree)(using newCtx)
72
73
case ident : Ident =>
73
74
unusedDataApply(_.registerUsed(ident.symbol))
74
75
traverseChildren(tree)(using newCtx)
Original file line number Diff line number Diff line change @@ -203,3 +203,14 @@ object testAnnotatedType:
203
203
import annotation .switch // OK
204
204
val a = (??? : @ switch) match
205
205
case _ => ???
206
+
207
+
208
+ // -------------------------------------
209
+ package testImportsInImports:
210
+ package a:
211
+ package b:
212
+ val x = 1
213
+ package c:
214
+ import a .b // OK
215
+ import b .x // OK
216
+ val y = x
You can’t perform that action at this time.
0 commit comments