Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (16 sloc) 406 Bytes
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;
}
}
Jump to Line
Something went wrong with that request. Please try again.