This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 151
Static checker cannot prove compiler-generated Expressions are created safely. #424
Labels
Comments
Could you please paste decompiled IL that csc generates for this code? It will slightly help to understand the root cause of the issue. |
|
Looking at it again, judging by the Reference Source for I have a local commit that removes this precondition, I can create a PR once I'm done with a few other changes too. I have no idea where the |
yaakov-h
added a commit
to WiseTechGlobal/CodeContracts
that referenced
this issue
May 23, 2016
…rovable when the compiler generates Expression calls from LINQ. Fixes microsoft#424.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Given the following case:
The static checker reports the following:
The root cause is the second error (below), triggered by this contract on
Expression.NewArrayInit
.The first error is a very odd side-effect, seems to be the static checker choking on the analysis.
The text was updated successfully, but these errors were encountered: