Merge pull request #4178 from ntherning/fix-broken-windows-build
[mono-project.git] / mono / tests / generic-virtual2.2.cs
blob88d88cded6a3c5ef5be9ffd114b0aa2b4eb2054e
1 public struct GenStruct<T> {
4 public class Gen<T> {
5 public object doCall<S> (GenStruct<T> x) {
6 return newArr (x);
9 public object newArr (GenStruct<T> x) {
10 return new T [3];
14 public class main {
15 public static int Main () {
16 Gen<string> gs = new Gen<string> ();
18 if (gs.doCall<object> (new GenStruct<string> ()).GetType () != typeof (string []))
19 return 1;
20 return 0;