I'd expect to be able to import with a depwarn, but get an error instead:
julia> import Base.Test: record
WARNING: Base.Test is deprecated, run `using Test` instead.
likely near no file:0
ERROR: invalid import path: "Test" does not name a module
Related to (possibly duplicate of) #24488
definitly a dup and I might have a fix for this.
Fixing this would be incredibly helpful in reducing breakage.
This is now properly fixed even for exported functions and submodules after #25692
Most helpful comment
This is now properly fixed even for exported functions and submodules after #25692