We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example:
Type[] arr = new Type[1]; arr[0] = string.Empty.Length == 0 ? GetMethods() : GetFields(); // IL2062 (Unknown value) RequireAll(arr[0]);
I would expect this to instead produce two instances of IL2072, warning about GetMethods/GetFields, like what happens in this example:
Type[] arr = new Type[1]; if (string.Empty.Length == 0) arr[0] = GetMethods(); else arr[0] = GetFields(); RequireAll(arr[0]); // IL2072 (GetMethods/GetFields)
I debugged this a little - what happens is this:
ArrayValue
arr[0]
I think this is a specific case of #2158 - we need to ensure that the array reference on the stack and that in the tracked locals are the same.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Example:
I would expect this to instead produce two instances of IL2072, warning about GetMethods/GetFields, like what happens in this example:
I debugged this a little - what happens is this:
ArrayValue
on the stack.arr[0]
from the originalArrayValue
which doesn't have any elements assigned.I think this is a specific case of #2158 - we need to ensure that the array reference on the stack and that in the tracked locals are the same.
The text was updated successfully, but these errors were encountered: