mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 15:26:00 +02:00
Const lhs handling of ??, cond var assignment in CreateConditionalScope
This commit is contained in:
parent
4c499cc498
commit
ae53196e74
5 changed files with 65 additions and 11 deletions
|
@ -324,5 +324,23 @@ namespace IDETest
|
|||
|
||||
}
|
||||
}
|
||||
|
||||
public void Local7()
|
||||
{
|
||||
int a = 1;
|
||||
int b;
|
||||
int c;
|
||||
int d;
|
||||
|
||||
if ((a == 1) && ({b = 2; if (a == 1) {c = 1;} a == 1}))
|
||||
{
|
||||
int a2 = a;
|
||||
int b2 = b;
|
||||
int c2 = c; //FAIL
|
||||
}
|
||||
int a3 = a;
|
||||
int b3 = b; //FAIL
|
||||
int c3 = c; //FAIL
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue