Author: martin
Date: 2006-09-27 06:12:33 -0400 (Wed, 27 Sep 2006)
New Revision: 65957

Modified:
   branches/martin/anonymous-methods/mcs/delegate.cs
Log:
Anonymous methods ...

Modified: branches/martin/anonymous-methods/mcs/delegate.cs
===================================================================
--- branches/martin/anonymous-methods/mcs/delegate.cs   2006-09-27 10:12:20 UTC 
(rev 65956)
+++ branches/martin/anonymous-methods/mcs/delegate.cs   2006-09-27 10:12:33 UTC 
(rev 65957)
@@ -829,8 +829,8 @@
                        
                        Expression e = a.Expr;
 
-                       if (e is AnonymousMethod && RootContext.Version != 
LanguageVersion.ISO_1)
-                               return ((AnonymousMethod) e).Compatible (ec, 
type);
+                       if (e is AnonymousMethodExpression && 
RootContext.Version != LanguageVersion.ISO_1)
+                               return ((AnonymousMethodExpression) 
e).Compatible (ec, type);
 
                        MethodGroupExpr mg = e as MethodGroupExpr;
                        if (mg != null)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to