[Mono-bugs] [Bug 73629][Nor] New - gmcs cannot locate a constructor with a generic multidimensional array param.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 12 Mar 2005 11:20:13 -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 marcus@cuda.org.
http://bugzilla.ximian.com/show_bug.cgi?id=73629
--- shadow/73629 2005-03-12 11:20:13.000000000 -0500
+++ shadow/73629.tmp.20433 2005-03-12 11:20:13.000000000 -0500
@@ -0,0 +1,44 @@
+Bug#: 73629
+Product: Mono: Compilers
+Version: 1.1
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: marcus@cuda.org
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: gmcs cannot locate a constructor with a generic multidimensional array param.
+
+Description of Problem:
+gmcs cannot a locate a constructor with a generic multidimensional array
+parameter. Works fine for non-generic types.
+
+Steps to reproduce the problem:
+Try to compile this code with gmcs
+
+using System;
+public class Test<T>{
+ private T[,] data;
+ public Test(T[,] data){
+ this.data = data;
+ }
+}
+public class Program{
+ public static void Main(string[] args){
+ Test<double> test = new Test<double>(new double[2,2]);
+ }
+}
+
+Actual Results:
+test.cs(10) error CS1501: New invocation: Can not find a constructor in
+`Test`1' for this argument list
+
+Expected Results:
+Should compile fine, does so under .NET 2.0 beta1.