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
{{ message }}
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
Code contracts repo has a bunch of tests for async methods. Unfortunately, some of them are broken.
For instance, tests for async6.cs to async9.cs will fail because ccrewrite.exe will return -1.
Here is a small repo for the issue:
classTestTaskContracts{publicasyncTask<List<int>>FooAsync(intlimit){Contract.Ensures(Contract.ForAll(Contract.Result<List<int>>(), i =>i<limit));awaitTask.Delay(42);returnEnumerable.Range(1,10).ToList();}}
Running ccrewrite on this class will fail with NullReferenceException at System.Compiler.Writer.cs line 1814.