Julia: Importing from stdlib modules using the deprecated name gives an error

Created on 29 Nov 2017  路  4Comments  路  Source: JuliaLang/julia

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

Most helpful comment

This is now properly fixed even for exported functions and submodules after #25692

All 4 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yurivish picture yurivish  路  3Comments

StefanKarpinski picture StefanKarpinski  路  3Comments

sbromberger picture sbromberger  路  3Comments

i-apellaniz picture i-apellaniz  路  3Comments

arshpreetsingh picture arshpreetsingh  路  3Comments