### What problem does your feature solve? ``` union Test switch (int v) { case 0: int x; case 1: int x; } ``` compiles successfully but breaks xdrc due to the repeated `x`. The fix for a real example that broke stellar-core can be seen in https://github.com/stellar/stellar-xdr-next/pull/20. ### What would you like to see? This shouldn't compile. ### What alternatives are there? TODO