mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
A constant narrower than its stack type builds as a plain ldc.i4, which infers as int, so a conditional whose other branch really is a char saw two different types and the whole tree was left as the Expression calls that built it - EF Core's StringCharConverter.ToChar is one. Bool and enum constants were already wrapped for this reason; the wrap now applies wherever the built value does not infer as the declared type. Assisted-by: Claude:claude-opus-5:Claude Codepull/4091/head
2 changed files with 17 additions and 3 deletions
Loading…
Reference in new issue