We should be able to warn about this:
switch ($x) { case 'A': // do something case 'A': // oops }
Closed by commit rARCb31e9c0cfee0.