# Error type mismatch

**URL:** <https://discourse.julialang.org/t/error-type-mismatch/22636>\
**Category:** New to Julia\
**Tags:** type, module\
**Created:** [April 2, 2019, 1:39pm UTC](https://discourse.julialang.org/t/error-type-mismatch/22636 "2019-04-02T13:39:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yosinlpet](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yosinlpet/32/46964_2.png) [@yosinlpet](https://discourse.julialang.org/u/yosinlpet)\
**Post date:** [April 2, 2019, 1:39pm UTC](https://discourse.julialang.org/t/error-type-mismatch/22636/1 "2019-04-02T13:39:24Z")

</div>

Hello, I have an issue with a project in which two different modules (‘MultiPro’ and ‘ProfileMod’) call the same module ‘VortexElement’. However, since ‘MultiPro’ calls the ‘ProfileMod’ module, Julia does not understand that the ‘VortexElement.LinearPanel’ type is the same in both cases…

It throws the following error:

> Blockquote

ERROR: LoadError: MethodError: no method matching Main.MultiPro.VortexElement.LinearPanel(::Main.MultiPro.ProfileMod.VortexElement.LinearPanel)  
Closest candidates are:  
Main.MultiPro.VortexElement.LinearPanel(::Any, !Matched::Any, !Matched::Any, !Matched::Any, !Matched::Any, !Matched::Any, !Matched::Any, !Matched::Any)

> Blockquote

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [April 2, 2019, 1:46pm UTC](https://discourse.julialang.org/t/error-type-mismatch/22636/2 "2019-04-02T13:46:15Z")

</div>

Please

1. [make an MWE and quote your code](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757),

2. do not post the [same question](https://discourse.julialang.org/t/error-with-same-type-called-from-different-modules/22609) multiple times.
