* expression.cs (DelegateInvocation.EmitStatement): Make this work
for corlib. Fixes #75691.
svn path=/trunk/mcs/; revision=51162
+2005-10-04 Martin Baulig <martin@ximian.com>
+
+ * expression.cs (DelegateInvocation.EmitStatement): Make this work
+ for corlib. Fixes #75691.
+
2005-09-28 Marek Safar <marek.safar@seznam.cz>
Fix #76255.
// Pop the return value if there is one
//
if (method is MethodInfo){
- if (((MethodInfo) method).ReturnType != TypeManager.void_type)
+ Type ret = ((MethodInfo)method).ReturnType;
+ if (TypeManager.TypeToCoreType (ret) != TypeManager.void_type)
ec.ig.Emit (OpCodes.Pop);
}
}
--- /dev/null
+class M {
+ static void p (string x) {
+ System.Console.WriteLine (x);
+ }
+
+ static void Main () {
+ string[] arr = new string[] { "a", "b", "c" };
+ System.Array.ForEach (arr, p);
+ }
+}