mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
ConvertConstant is its only caller, and with the result type gone the out parameter that reconstructed it - a switch over LdNull/LdStr/Ldc* - has no consumer. What remains is a match condition: the two-argument Expression.Constant overload must pass its type as typeof(T), while the one-argument overload legacy csc emits for display-class instances has nothing to check. Assisted-by: Claude:claude-opus-5[1m]:Claude Codepull/4091/head
1 changed files with 14 additions and 24 deletions
Loading…
Reference in new issue