Bug 317444 (MONO73629) - [GMCS]: Cannot locate a constructor with a generic multidimensional array param.
Summary: [GMCS]: Cannot locate a constructor with a generic multidimensional array param.
Status: RESOLVED FIXED
Alias: MONO73629
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other All
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-12 18:20 UTC by Marcus Cuda
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:10:34 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.