1
0
Fork 0
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:
Brian Fiete 2022-02-16 08:28:05 -05:00
parent 4c499cc498
commit ae53196e74
5 changed files with 65 additions and 11 deletions

View file

@ -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
}
}
}