Merge pull request #4928 from kumpera/ptr_to_struct_intrinsic
[mono.git] / mcs / tests / gtest-263.cs
1 using System;
2 using System.Collections.Generic;
3
4 class Foo<S>
5 {
6         public ICloneable Test (S t)
7         {
8                 return (ICloneable) t;
9         }
10 }
11
12 public static class ConvertHelper
13 {
14         public static IEnumerator<T> Test<S,T> (S s)
15                 where T : S
16         {
17                 yield return (T) s;
18         }
19
20         public static void Main ()
21         { }
22 }