icerpc / icerpc-csharp

A C# RPC framework built for QUIC, with bidirectional streaming, first-class async/await, and Protobuf support.
https://docs.icerpc.dev
Apache License 2.0
102 stars 13 forks source link

Results Cannot Contain Optional Collections #3898

Closed InsertCreativityHere closed 7 months ago

InsertCreativityHere commented 7 months ago

This Slice definition produces code that doesn't compile:

struct TestingStuff {
    x: Result<bool, Sequence<int32>?>
}

It gives:

error CS8651: It is not legal to use nullable reference type 'IList<int>?' in an as expression; use the underlying type 'IList<int>' instead.