You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TestRequest.MemoryPackFormatter.g.cs(34,91): error CS0266: Cannot implicitly convert type 'MemoryPack.IMemoryPackFormatter<NodaTime.Instant>' to 'MemoryPack.IMemoryPackFormatter<NodaTime.Instant?>'. An explicit conversion exists (are you missing a cast?)
Ideally, I shouldn't have to repeat the code in MemoryPack's NullableFormatter<T> + have separate nullable and non-nullable formatters for every value type — this is bad composability. MemoryPack should be smart enough in this example to know that formatter I specified should be wrapped in a NullableFormatter<T>.
Worth noting that MessagePack works this way.
The text was updated successfully, but these errors were encountered:
Given this
Program.cs
:The build fails:
Ideally, I shouldn't have to repeat the code in MemoryPack's
NullableFormatter<T>
+ have separate nullable and non-nullable formatters for every value type — this is bad composability. MemoryPack should be smart enough in this example to know that formatter I specified should be wrapped in aNullableFormatter<T>
.Worth noting that MessagePack works this way.
The text was updated successfully, but these errors were encountered: