[2020-02] Avoid following invalid pointers in mono_w32process_get_modules on Darwin...
[mono-project.git] / mono / tests / generic-system-arrays.2.cs
blob9beb7a9d545b4094395946ce9d2c527c97cde2f8
1 public class Test {
2 public static object genArr<T> () {
3 return new T[3,3];
6 public static int Main () {
7 if (genArr<int> ().GetType () != typeof (int [,]))
8 return 1;
9 if (genArr<object> ().GetType () != typeof (object [,]))
10 return 1;
11 if (genArr<string> ().GetType () != typeof (string [,]))
12 return 1;
13 if (genArr<Test> ().GetType () != typeof (Test [,]))
14 return 1;
15 return 0;