--- /dev/null
+using System;
+class Test {
+ public static void Main(string[] argv) {
+ Console.WriteLine("Type of anonymous block: {0}",
+ (delegate() {}).GetType());
+ }
+}
+2006-01-30 Miguel de Icaza <miguel@novell.com>
+
+ * expression.cs: Member access is not allowed on anonymous
+ methods. Fixes #77402.
+
2006-01-30 Raja R Harinath <rharinath@novell.com>
Fix #77401
Error (23, "The `.' operator can not be applied to pointer operands (" +
TypeManager.CSharpName (expr_type) + ")");
return null;
- }
-
- if (expr_type == TypeManager.void_type) {
+ } else if (expr_type == TypeManager.void_type) {
Error (23, "The `.' operator can not be applied to operands of type 'void'");
return null;
+ } else if (expr_type == TypeManager.anonymous_method_type){
+ Error (23, "The `.' operator can not be applied to anonymous methods");
}
+
Expression member_lookup;
member_lookup = MemberLookup (
+2006-01-30 Miguel de Icaza <miguel@novell.com>
+
+ * expression.cs: Member access is not allowed on anonymous
+ methods. Fixes #77402.
+
2006-01-30 Raja R Harinath <rharinath@novell.com>
Fix #77401
Error (23, "The `.' operator can not be applied to pointer operands (" +
TypeManager.CSharpName (expr_type) + ")");
return null;
- }
-
- if (expr_type == TypeManager.void_type) {
+ } else if (expr_type == TypeManager.void_type) {
Error (23, "The `.' operator can not be applied to operands of type 'void'");
return null;
+ } else if (expr_type == TypeManager.anonymous_method_type){
+ Error (23, "The `.' operator can not be applied to anonymous methods");
}
+
Expression member_lookup;
member_lookup = MemberLookupFinal (ec, expr_type, expr_type, Identifier, loc);