Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: ee0bc0d176
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (16 sloc) 0.406 kB
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.