1 // gcs0413-2.cs: The as operator requires that the `T' type parameter be constrained by a class
4 public class SomeClass
{
7 public class Foo
<T
> where T
: struct {
8 public T
Do (object o
) { return o as T; }
14 Foo
<SomeClass
> f
= new Foo
<SomeClass
> ();