Conflicting import of function with different signatures from multiple modules

They are different functions, so you cannot “merge” them. This has been discussed at length.

You can either

  1. define TestFcn in TypeDef, and have both Mod1 and Mod2 import it (which I guess is what you want),
  2. import Mod1 and use Mod1.TestFcn, or not export it and do the same.

Also, note that most people use lowercase function names in Julia.

2 Likes