public void TryFinallyWithAssignmentInFinally() { ILVariable v = new ILVariable(VariableKind.Local, SpecialType.UnknownType, 0); ILFunction f = new ILFunction(null, new TryFinally( new Nop(), new StLoc(v, new LdcI4(0)) )); f.AddRef(); f.Variables.Add(v); f.Body.AcceptVisitor(new RDTest(f, v)); }
public void TryFinallyWithAssignmentInFinally() { ILVariable v = new ILVariable(VariableKind.Local, SpecialType.UnknownType, 0); ILFunction f = new ILFunction( returnType: SpecialType.UnknownType, parameters: new IParameter[0], genericContext: new GenericContext(), body: new TryFinally( new Nop(), new StLoc(v, new LdcI4(0)) )); f.AddRef(); f.Variables.Add(v); f.Body.AcceptVisitor(new RDTest(f, v)); }