Closed PathogenDavid closed 2 years ago
Semi-related: https://github.com/InfectedLibraries/Biohazrd/issues/100
This was made unnecessary by https://github.com/MochiLibraries/Biohazrd/issues/236 as we convert bool
/char
to NativeBoolean
/NativeChar
just in time during emit.
https://github.com/InfectedLibraries/Biohazrd/issues/99 introduced a workaround for correctness bugs which arise when a
bool
orchar
is used in the context of an unmanaged function pointer.However if the transformation is omitted for whatever reason we will end up emitting incorrect interop code with subtle and frustrating bugs. We should add a verification to suggest running this transformation if any of these problematic types exist.