Basic concept about multiple dispatch

Just like two different types can have the same name, say

module A
struct AB end
end
module B
struct AB end
end

so can functions

module A
f() = 1
end
module B
f() = 1
end

Check this thread:

3 Likes