add ISafeSerializationData
[mcs.git] / tests / gtest-466.cs
blob8da755dff9e55f8e1a6701ef5a56e00c2ae9aec3
1 using System;
3 class Program
5 bool Test<T> (T t) where T : class
7 return t == this;
10 static int Main ()
12 var p = new Program ();
14 if (p.Test ("a"))
15 return 1;
17 if (!p.Test (p))
18 return 2;
20 return 0;