linux-packaging-mono/mcs/tests/gtest-initialize-08.cs

43 lines
392 B
C#
Raw Permalink Normal View History

using System;
using System.Collections.Generic;
class T
{
public X[] x;
}
class X
{
public Z[] Prop { get; set; }
}
class Z
{
}
class Test
{
T t = new T () { x = new X [] {
new X () {
Prop = new Z[] { new Z (), new Z () }
}
}};
public Test (string s)
{
}
public Test (int i)
{
}
}
public class C
{
public static int Main ()
{
new Test ("2");
return 0;
}
}