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

gtest-325.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 318b904c46b393e521775c7399b9bd90539a5607 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
public class SomeClass<T> where T : new() {
    public void Foo() {
        new T();
    }
}

class Foo {
	public static void Main ()
	{
		SomeClass<object> x = new SomeClass<object> ();
		x.Foo ();
	}
}