[Mono-list] mcs bug, chokes on multidimensional array

Antony Lesuisse al2000@udev.org
Sat, 14 Aug 2004 17:06:57 +0200


I think i've found a bug in mcs 1.0, confirmed by checking in vs.net.
Here is the test:

/*
VS.NET:
    OK

Mono C# compiler version 1.0.0.0 (from debian package):
    mcs: tmp.cs(28) error CS0030: Cannot convert type 'int[,][]' to 'int[][,]'

*/

using System;
class ArrayBug {
    public static int Main(String[] args) {
        int[][,] mb = new int[3][,];
        mb = (int[][,])mb;
        return 0;
    }
}

-- 
Antony Lesuisse