linux-packaging-mono/mcs/tests/dtest-collectioninit-01.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

32 lines
402 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
public class Test
{
class Wrap
{
List<short> numbers = new List<short> ();
public dynamic Numbers {
get {
return numbers;
}
}
}
public static int Main ()
{
var a = new Wrap () {
Numbers = { 3, 9 }
};
if (a.Numbers [1] != 9)
return 1;
Console.WriteLine ("OK");
return 0;
}
}