1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-22 14:52:40 +01:00

Add a test case for false negative switch lint rule

Summary:
I tried to fixed it but I've given up.

See rP958e6cd109f3.

Test Plan:
  $ arc unit

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D3449
This commit is contained in:
vrana 2012-09-06 15:13:18 -07:00
parent cdb161a19a
commit 339cabedcc

View file

@ -48,6 +48,22 @@ switch ($x) {
default:
$x++;
}
switch ($x) {
case 1:
while (true) {
break;
}
// TODO: false negative
case 2:
switch ($y) {
case 1:
break;
}
// TODO: false negative
}
~~~~~~~~~~
warning:41:3
warning:48:3
disabled:57:8
disabled:63:8