+2007-08-21 Marek Safar <marek.safar@gmail.com>
+
+ * anonymous.cs (AnonymousMethod): Generate private anonymous method
+ to fix problem with private arguments.
+
2007-08-20 Marek Safar <marek.safar@gmail.com>
* anonymous.cs (AnonymousTypeClass): An anonymous type can be empty.
return new AnonymousMethodMethod (
this, scope, generic_method, new TypeExpression (ReturnType, Location),
- Modifiers.INTERNAL, member_name, Parameters);
+ Modifiers.PRIVATE, member_name, Parameters);
}
public override Expression Resolve (EmitContext ec)
throw new InternalErrorException ();
MethodGroupExpr mg = (MethodGroupExpr) Expression.MemberLookup (
- ec.ContainerType, scope_type, builder.Name, Location);
-
+ ec.ContainerType, scope_type, builder.Name,
+ MemberTypes.Method, Expression.AllBindingFlags | BindingFlags.NonPublic, Location);
+
if (mg == null)
throw new InternalErrorException ();
builder = (MethodInfo) mg.Methods [0];