mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 11:25:51 +00:00
use type constrsaints for co-variant subtying to enable .net 3.5
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
d4539b8887
commit
310c0f31a1
8 changed files with 48 additions and 48 deletions
|
@ -138,7 +138,7 @@ namespace Microsoft.Z3
|
|||
}
|
||||
|
||||
[Pure]
|
||||
internal static IntPtr[] EnumToNative(IEnumerable<Z3Object> a)
|
||||
internal static IntPtr[] EnumToNative<T>(IEnumerable<T> a) where T : Z3Object
|
||||
{
|
||||
Contract.Ensures(a == null || Contract.Result<IntPtr[]>() != null);
|
||||
Contract.Ensures(a == null || Contract.Result<IntPtr[]>().Length == a.Count());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue