Take stars out of types where they make more sense.
[mono-project.git] / mcs / tests / test-684.cs
blob1beb1136d2b0c4291295f28049677054d1777478
1 using System;
3 namespace mono_bug
5 class Program
7 public static void Main ()
10 // initialise so no null errors
11 double [,] [] foo = new double [1, 1] [];
12 foo [0, 0] = new double [2];
14 double [,] [] bar;
16 bar = (double [,] []) foo.Clone ();
18 bar = (double [,] []) ReturnArray ();
20 // compiles & works correctly
21 bar = ReturnArray ();
23 Console.WriteLine (bar [0, 0] [1].ToString ());
26 private static double [,] [] ReturnArray ()
28 // just creates a "useless", multi-dimensional jagged array
29 double [,] [] zoo = new double [1, 1] [];
30 zoo [0, 0] = new double [2];
31 zoo [0, 0] [0] = 1;
32 zoo [0, 0] [1] = 2;
33 return zoo;