mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixes for new out-var rules, unassigned variable detection
This commit is contained in:
parent
6878183873
commit
fd3265445d
9 changed files with 56 additions and 30 deletions
|
@ -27,12 +27,19 @@ namespace IDETest
|
|||
b = a;
|
||||
}
|
||||
|
||||
public void For1(out int a) //FAIL
|
||||
public void For1(out int a)
|
||||
{
|
||||
for (int b < 2)
|
||||
a = 9;
|
||||
}
|
||||
|
||||
public void For2(out int a) //FAIL
|
||||
{
|
||||
int b = 123;
|
||||
for (int c < b)
|
||||
a = 9;
|
||||
}
|
||||
|
||||
public void Do1(out int a) //FAIL
|
||||
{
|
||||
int b = 123;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue