They are different functions, so you cannot “merge” them. This has been discussed at length.
You can either
- define
TestFcninTypeDef, and have bothMod1andMod2import it (which I guess is what you want), -
import Mod1and useMod1.TestFcn, or not export it and do the same.
Also, note that most people use lowercase function names in Julia.