There were territories, like the Cameroon and Eritrea, governed by different colonialists that may have merged or were annexed before or at independence, but that is not the case of Somaliland.
Other countries and islands trace their legal heritage to different former colonialists.