Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

26 lines
290 B
C#

using System;
public class C<T1> where T1 : B<T1>, new ()
{
public void Test ()
{
using (var a = new T1 ()) {
}
}
}
public class B<T2> : IDisposable
{
void IDisposable.Dispose ()
{
}
}
public class Test : B<Test>
{
public static void Main ()
{
new C<Test> ().Test ();
}
}