X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fgmcs%2Fexpression.cs;h=9a5c6b8170054f4fd1fa948351c8556b4bb3d4f0;hb=1b3d113f2ca8f7bc9dbef58d9e3ab023f761462f;hp=147daa50980847546b01202c4f5cda94e423dc4a;hpb=620645f957fa2c40612b2cd7bd88dae515fcf9eb;p=mono.git diff --git a/mcs/gmcs/expression.cs b/mcs/gmcs/expression.cs index 147daa50980..9a5c6b81700 100644 --- a/mcs/gmcs/expression.cs +++ b/mcs/gmcs/expression.cs @@ -6895,6 +6895,9 @@ namespace Mono.CSharp { if ((block != null) && (block.ThisVariable != null)) variable_info = block.ThisVariable.VariableInfo; + if (ec.CurrentAnonymousMethod != null) + ec.CaptureThis (); + return true; }