# Bug with \`import\` on Windows?

**URL:** <https://discourse.julialang.org/t/bug-with-import-on-windows/10798>\
**Category:** Internals & Design\
**Tags:** question, bug\
**Created:** [May 9, 2018, 2:24pm UTC](https://discourse.julialang.org/t/bug-with-import-on-windows/10798 "2018-05-09T14:24:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chakravala](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chakravala/32/6832_2.png) [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Post date:** [May 9, 2018, 2:24pm UTC](https://discourse.julialang.org/t/bug-with-import-on-windows/10798/1 "2018-05-09T14:24:40Z")

</div>

This is an issue that seems to affect Windows users:

```nohighlight
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

```nohighlight
* = ModTimes.:*

```

but this is not an ideal solution.

[https://github.com/JuliaLang/julia/issues/27048](https://github.com/JuliaLang/julia/issues/27048)

---

<div class="post-metadata">

**Author:** ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Post date:** [May 9, 2018, 2:43pm UTC](https://discourse.julialang.org/t/bug-with-import-on-windows/10798/2 "2018-05-09T14:43:09Z")

</div>

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

```julia
   _ _ _(_)_ | 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

```

---

<div class="post-metadata">

**Author:** ![chakravala](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chakravala/32/6832_2.png) [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Post date:** [May 9, 2018, 2:47pm UTC](https://discourse.julialang.org/t/bug-with-import-on-windows/10798/3 "2018-05-09T14:47:34Z")

</div>

Looks like this is fixed on 0.7,

[https://github.com/JuliaLang/julia/issues/18769](https://github.com/JuliaLang/julia/issues/18769)
