[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs0413.cs
1 // CS0413: The `as' operator cannot be used with a non-reference type parameter `T'. Consider adding `class' or a reference type constraint
2 // Line: 7
3
4 public class SomeClass {}
5
6 public class Foo<T>  {
7         public T Do (object o) { return o as T; }
8 }
9
10 class Driver {
11         static void Main ()
12         {
13                 Foo<SomeClass> f = new Foo<SomeClass> ();
14                 f.Do ("something");
15         }
16 }
17