If it's the former, than even flaunting such a plan is a complete catastrophe for any foreign investment in Spain from now on. But if it's the latter, it'll just bring to life a whole industry of middle-men, which will use their EU residency to buy property in their name to be used by other people.
Both ways, it's yet another attempt to force a market to do something that will lead to either disastrous, or just bad results.