Author: marek
Date: 2008-01-22 12:57:44 -0500 (Tue, 22 Jan 2008)
New Revision: 93558
Modified:
trunk/mcs/mcs/anonymous.cs
trunk/mcs/mcs/typemanager.cs
Log:
Build fix.
Modified: trunk/mcs/mcs/anonymous.cs
===================================================================
--- trunk/mcs/mcs/anonymous.cs 2008-01-22 17:56:53 UTC (rev 93557)
+++ trunk/mcs/mcs/anonymous.cs 2008-01-22 17:57:44 UTC (rev 93558)
@@ -1270,12 +1270,16 @@
return false;
if (!TypeManager.IsDelegateType (delegate_type)) {
+#if GMCS_SOURCE
if (TypeManager.DropGenericTypeArguments
(delegate_type) != TypeManager.expression_type)
return false;
delegate_type =
delegate_type.GetGenericArguments () [0];
if (!TypeManager.IsDelegateType (delegate_type))
return false;
+#else
+ return false;
+#endif
}
ParameterData d_params =
TypeManager.GetDelegateParameters (delegate_type);
Modified: trunk/mcs/mcs/typemanager.cs
===================================================================
--- trunk/mcs/mcs/typemanager.cs 2008-01-22 17:56:53 UTC (rev 93557)
+++ trunk/mcs/mcs/typemanager.cs 2008-01-22 17:57:44 UTC (rev 93558)
@@ -123,12 +123,12 @@
static internal Type default_charset_type;
static internal Type internals_visible_attr_type;
static internal Type type_forwarder_attr_type;
+#endif
//
// C# 3.0
//
static internal Type expression_type;
-#endif
//
// Expressions representing the internal types. Used during declaration
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches