mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
allows ref struct is inherited implicitly, so restating it on an override is CS0460 even alongside a legal disambiguator. Roslyn still re-emits the byreflike flag on the override's own type parameter, and the general constraint printer turns that flag back into source, so the disambiguator stays legal only as long as it is built separately. Cover a C# 13 base whose annotated and plain methods both allow ref structs. Assisted-by: Copilot:claude-opus-5:GitHub Copilot CLIpull/3910/head
2 changed files with 26 additions and 0 deletions
Loading…
Reference in new issue