The latest source from CodePlex fails to compile on Mono with:

IronPython/Runtime/Operations/Ops.cs(1336,13): error CS0411: The type
arguments for method `AddRange' cannot be infered from the usage. Try
specifying the type arguments explicitly.
IronPython/Runtime/Operations/Ops.cs(1413,13): error CS0411: The type
arguments for method `AddRange' cannot be infered from the usage. Try
specifying the type arguments explicitly.

A simple workaround is attached.
diff -urN r1458/Src/IronPython/Runtime/Operations/Ops.cs 
wc/Src/IronPython/Runtime/Operations/Ops.cs
--- r1458/Src/IronPython/Runtime/Operations/Ops.cs      2006-07-19 
10:56:14.000000000 +0900
+++ wc/Src/IronPython/Runtime/Operations/Ops.cs 2006-07-19 15:24:46.000000000 
+0900
@@ -1333,7 +1333,7 @@
             }
 
             List allArgs = List.MakeEmptyList(args.Length + 10);
-            allArgs.AddRange(args);
+            allArgs.AddRange<object>(args);
             IEnumerator e = Ops.GetEnumerator(argsTuple);
             while (e.MoveNext()) allArgs.AddNoLock(e.Current);
 
@@ -1410,7 +1410,7 @@
             }
 
             List allArgs = List.MakeEmptyList(args.Length + 10);
-            allArgs.AddRange(args);
+            allArgs.AddRange<object>(args);
             IEnumerator e = Ops.GetEnumerator(argsTuple);
             while (e.MoveNext()) allArgs.AddNoLock(e.Current);
 
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to