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

gtest-208.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e827dc8efd78f47ece58023da019c1b86d89d976 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
public class SomeClass {
}

public class Foo<T> where T : class {
	public T Do (object o) { return o as T; }
}

class Driver {
	static void Main ()
	{
		Foo<SomeClass> f = new Foo<SomeClass> ();
		f.Do ("something");
	}
}