## Compiler version 3.7.0-RC2 and latest nightly 3.7.1-RC1-bin-20250411-98c84c3-NIGHTLY ## Minimized code ```scala object test1 { object foo { type X = Int } } object test2 { import test1.foo export foo.X } ``` ## Output ```scala -- [E198] Unused Symbol Warning: ----------------------------------------------- 8 | import test1.foo | ^^^ | unused import ``` ## Expectation The import should not be reported unused since it's required for the `export foo.X` statement.