the EUs position was not at all legally dubious, Scotland would have been going from being a part of a nation that was a EU member to being a independent nation, as such it would not under EU law and treaty have inherited membership from its parent nation.