Bugzilla – Bug 317444
[GMCS]: Cannot locate a constructor with a generic multidimensional array param.
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by marcus@cuda.org 2005-03-12 11:20:12 MST ---- 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. ---- Additional Comments From martin@ximian.com 2005-03-17 09:04:29 MST ---- Fixed in SVN.