Merge 'Unions' into main by AlekseyTs · Pull Request #82640 · dotnet/roslyn

1 min read Original article ↗

added 30 commits

November 18, 2025 23:49
First commit is a change that hopefully could be shared with "Closed Hierarchies" feature.
- Null pattern for classes
- TryGetValue nullable analysis
Supporting:
- ```union <name> ... ```
Align implementation with recent design changes:
- Case types are not nullable types (constructor parameter types are
unwrapped)
- Default nullability of the `Value` property is no longer inferred from
constructors. Annotations on the property declaration itself are used as
for any regular property.

jjonescz

RikkiGibson

phil-allen-msft

This was referenced

Mar 7, 2026

This was referenced

Mar 16, 2026

mich4xD pushed a commit to JohannesMoersch/Functional that referenced this pull request

Mar 17, 2026
…n from

dotnet/roslyn#82640

Adding Custom roslyn compiler version via csp files

Adding performance benchmarks for difference between functional union, new version using native union, and just simple switch using native union

mich4xD pushed a commit to JohannesMoersch/Functional that referenced this pull request

Mar 17, 2026
…n from

dotnet/roslyn#82640

Adding Custom roslyn compiler version via csp files

Adding performance benchmarks for difference between functional union, new version using native union, and just simple switch using native union