Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / dtest-collectioninit-01.cs
1 using System;
2 using System.Collections;
3 using System.Collections.Generic;
4
5 public class Test
6 {
7         class Wrap
8         {
9                 List<short> numbers = new List<short> ();
10                 
11                 public dynamic Numbers { 
12                         get { 
13                                 return numbers;
14                         }
15                 }
16         }
17         
18         public static int Main ()
19         {
20                 var a = new Wrap () {
21                         Numbers =  { 3, 9 }
22                 };
23                 
24                 if (a.Numbers [1] != 9)
25                         return 1;
26                 
27                 Console.WriteLine ("OK");
28                 return 0;
29         }
30 }
31