Merge pull request #1861 from saper/home-override
[mono-project.git] / mcs / tests / gtest-332.cs
blob4231eaca827b4dd08e649d8a6f57a0dac5c1e1e9
1 using System;
3 class C<T>
5 public Type Test ()
7 T[,] a = new T[0, 0];
8 return a.GetType ();
12 class M
14 public static void Main ()
16 C<string> c1 = new C<string> ();
17 C<bool> c2 = new C<bool> ();
18 if (c1.Test () != typeof (string[,]))
19 throw new InvalidCastException ();
20 if (c2.Test () != typeof (bool[,]))
21 throw new InvalidCastException ();