Bug with `import` on Windows?

question
bug

#1

This is an issue that seems to affect Windows users:

julia> module  ModPlus
           +(r...) = Base.:+(r...)
       end
ModPlus

julia> import ModPlus: +

julia> module ModTimes
           *(r...) = Base.:*(r...)
       end
ModTimes

julia> import ModTimes: *
WARNING: ignoring conflicting import of Mod.* into Main

It seems that on Windows version of Julia, there is an issue with importing the * method.

For some reason, this is the only method that doesn’t get imported.

I am actually not a Windows user, but this issue came up when I was checking the compatibility of my package. This issue does not happen on Linux or OSX and it is only specific to *.

Is this a bug? What’s going on here?

A possible workaround is to do

* = ModTimes.:*

but this is not an ideal solution.


#2

Perhaps this just indicates that * is used at some point during the Windows REPL startup. For example:

   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.6.2 (2017-12-13 18:08 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-pc-linux-gnu

julia> module ModPlus
       +(r...) = Base.:+(r...)
       end
ModPlus

julia> 2 + 2
4

julia> import ModPlus: +
WARNING: ignoring conflicting import of ModPlus.+ into Main

#3

Looks like this is fixed on 0.7,