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
{{ message }}
Repository navigation
Evaluate a shipped Roslyn analyzer that reports a type derived from a range union at compile time #210
#206 seals the range unions at runtime: the explicit copy constructor throws for any runtime type that is not nested in the union. A consumer who writes record Rogue(Int32Range Seed) : Int32Range(Seed); still compiles and only learns at the first construction. A Roslyn analyzer packed into the core and NodaTime packages (analyzers/dotnet/cs) could report the derivation at the declaration site, with the union's name and the reason.
It is a fifth shipping artefact: a netstandard2.0 project on Microsoft.CodeAnalysis.CSharp, tests on Microsoft.CodeAnalysis.Testing, packaging wiring in both nuspecs, a consumer in test/consumer-smoke-test.sh that asserts the diagnostic, and the carrying cost the 2026-10-18 external assessment warned about.
#148 probes C# 15 closed hierarchies on net10.0 and net11.0. If closed records ship and apply to the unions, the compiler reports the derivation itself and this analyzer has nothing left to do. If they do not reach net10.0, this is the compile-time half for the 10.x line.
Done looks like: a decision recorded here (ship, or close as superseded by #148), and if ship, a sub-issue under the release epic it goes into.
Activity