Treat pointers to enclosing declaration space as 'DeclSpace', not
[mono.git] / mcs / gmcs / const.cs
index 2e562ff2fe589eec44571e692f6fa6c0795a5bbe..7bff36905e80a31ceccbc4cbbab5faf39d181389 100644 (file)
@@ -135,7 +135,7 @@ namespace Mono.CSharp {
                        }
 
                        in_transit = true;
-                       EmitContext ec = new EmitContext (Parent, Location, null, MemberType, ModFlags);
+                       EmitContext ec = new EmitContext (this, Parent, Location, null, MemberType, ModFlags);
                        value = initializer.ResolveAsConstant (ec, this);
                        in_transit = false;