In dotnet land, bools aren't blittable and every [UnmanagedCallersOnly] method that took a bool was failing a runtime check because of the bool - which is weird - you would think that the compiler would catch that as it does with other types, but not in this case.
The fix is in two parts:
redo the code that generates the signature of the C# receiver. This is just a case of macro changing the return type and argument types from bool to nint.
redo the code that marshals from receivers to C# and return the code that marshals the C# return value to swift.
In dotnet land, bools aren't blittable and every
[UnmanagedCallersOnly]
method that took a bool was failing a runtime check because of the bool - which is weird - you would think that the compiler would catch that as it does with other types, but not in this case.The fix is in two parts:
This fixes 10 tests.