linux-packaging-mono/mono/tests/generic-system-arrays.2.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

18 lines
406 B
C#

public class Test {
public static object genArr<T> () {
return new T[3,3];
}
public static int Main () {
if (genArr<int> ().GetType () != typeof (int [,]))
return 1;
if (genArr<object> ().GetType () != typeof (object [,]))
return 1;
if (genArr<string> ().GetType () != typeof (string [,]))
return 1;
if (genArr<Test> ().GetType () != typeof (Test [,]))
return 1;
return 0;
}
}