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