Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-anon-137.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d0e1d8339db2602e9a9107e21371fa97d5463772 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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> ());
	}
}