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

22 lines
317 B
C#

using System;
using System.Collections.Generic;
public class Wrap<U>
{
public List<U> t;
}
public class Test
{
public int Run<T> (Wrap<T> t)
{
Action f = () => { t.t = new List<T> (); };
f ();
return t.t != null ? 0 : 1;
}
public static int Main ()
{
return new Test ().Run (new Wrap <byte> ());
}
}