This project is read-only.
1

Closed

LexicalScope check failed when decompiling assembly

description

to replicate try to decompile assembly containing method:
 
    private static void Test()
    {
        using (var stream = new MemoryStream())
        {
        }
 
        using (var stream1 = new MemoryStream())
        using (var stream2 = new MemoryStream())
        using (var stream3 = new MemoryStream())
        {
        }
    }
 
it is failing on contract check (SourceMethodBody.cs, line 231):
 
        Contract.Assume(!nb.IsLexicalScope); //lexical scopes are assumed to nest cleanly.
 
im using ccs.exe (from sample applications) to rewrite this assembly,
 
Cheers,

file attachments

Closed Jan 5, 2013 at 2:07 AM by hermanv

comments

hermanv wrote Aug 10, 2012 at 3:04 AM

See 69878.