This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
Using capturing precondition in async method in struct lead to invalid IL #168
Labels
Milestone
This bug is related to the #157, but not similar.
Consider following code:
Running this code will lead to
InvalidProgramException
when preconditions are enabled.CC version: 1.8+. This is not a regression, this stuff never worked properly.
Please note, the if the
Contract.Requires
will use arguments everything would be fine. Only when precondition is usingthis
the app will fail.The text was updated successfully, but these errors were encountered: