@@ -42,7 +42,7 @@ namespace LibA
val.Dispose();
}
- public static void Alloc<T>() where T : new, delete
+ public static void Alloc<T>() where T : new where alloctype(T) : delete
{
let t = new T();
delete t;
@@ -168,7 +168,7 @@ namespace Tests
- public static void Alloc0<T>() where T : new, delete, IDisposable
+ public static void Alloc0<T>() where T : new, IDisposable where alloctype(T) : delete
alloctype(T) val = new T();