mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
These helpers are documented to return null when nothing matches, but returned `null!`, hiding the very nullable warnings #nullable enable is meant to surface: a miss handed back null typed as non-null and would NRE downstream with no compile-time signal. Returning T? lets the compiler enforce the guard at each call site (both existing callers already null-check). GetVariable forwards the result, so it becomes VariableInitializer? to match. Assisted-by: Claude:claude-opus-4-8:Claude Codepull/3807/head
2 changed files with 5 additions and 5 deletions
Loading…
Reference in new issue