[Mono-bugs] [Bug 69917][Nor] New - [GMCS] Array.Resize arguments not infered

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 25 Nov 2004 12:55:34 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by bmaurer@users.sf.net.

http://bugzilla.ximian.com/show_bug.cgi?id=69917

--- shadow/69917	2004-11-25 12:55:34.000000000 -0500
+++ shadow/69917.tmp.401	2004-11-25 12:55:34.000000000 -0500
@@ -0,0 +1,33 @@
+Bug#: 69917
+Product: Mono: Compilers
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bmaurer@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [GMCS] Array.Resize arguments not infered
+
+using System;
+
+class X {
+	static void Main ()
+	{
+		int [] foo = null;
+		Array.Resize (ref foo, 10);
+	}
+}
+
+[benm@omega benm]$ gmcs arr-resize.cs
+ALPHA SOFTWARE: Mono C# Compiler 1.1.2.0 for Generics
+arr-resize.cs(7) error CS0411: The type arguments for method `Resize'
+cannot be infered from the usage. Try specifying the type arguments explicitly.
+Compilation failed: 1 error(s), 0 warnings