You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicvoidPrintLoop(intstartIndex,intendIndex,intstep){for(inti=startIndex;i<=endIndex;i+=step)Debug.WriteLine(i);}PrintLoop(0,2,1);// Prints 0, 1, 2PrintLoop(2,0,-1);// Prints nothing
Thanks for raising this. Seems like a sensible solution. We can use semanticModel.GetConstantValue to check if the conditional can be optimised away at conversion time.
Input code
Erroneous output
I think this should work :
Expected output
EDIT 9 dec : I changed the expected output.
The text was updated successfully, but these errors were encountered: