mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-01 05:45:59 +02:00
Fixes to variable assignment detection
This commit is contained in:
parent
5277797d73
commit
4d1d972599
3 changed files with 60 additions and 19 deletions
|
@ -416,5 +416,38 @@ namespace IDETest
|
|||
}
|
||||
while (read > 0); //FAIL
|
||||
}
|
||||
|
||||
public void Local13()
|
||||
{
|
||||
int a = 123;
|
||||
int b;
|
||||
switch (a)
|
||||
{
|
||||
default: b = 0;
|
||||
}
|
||||
int c = b;
|
||||
}
|
||||
|
||||
public void Local14()
|
||||
{
|
||||
int a = 123;
|
||||
int b;
|
||||
switch (a)
|
||||
{
|
||||
default: b = 0; break;
|
||||
}
|
||||
int c = b;
|
||||
}
|
||||
|
||||
public void Local15()
|
||||
{
|
||||
int a = 123;
|
||||
int b;
|
||||
switch (a)
|
||||
{
|
||||
default: break;
|
||||
}
|
||||
int c = b; //FAIL
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue