Why don't Generic structs honour nullable reference types? #9596
-
Particularly egregious when it happens to e.g. ImmutableArray<T?> and now my collection discards nullability-safety. This seems like a straight-up bug, to me, but the response to my issue seems to think that this is "Works as Intended"!? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
Actually scratch that im not sure anymore but all i know for certain is that its |
Beta Was this translation helpful? Give feedback.
-
Please file an issue at Roslyn as compiler warnings are its domain. |
Beta Was this translation helpful? Give feedback.
-
To check that I've understood the answers ... I think that:
Is known and expected (at least, by the C# team 😅) - that the reftype nullability is entirely ignored by actual execution of code? |
Beta Was this translation helpful? Give feedback.
Please file an issue at Roslyn as compiler warnings are its domain.