use MOONLIGHT symbol
[mcs.git] / tests / test-684.cs
blob9edbc9f70d5e3e383f535634a30ab3733854e983
1 using System;
3 namespace mono_bug
5 class Program
7 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;