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
[<return: X>] not respected on class members #19020
Also, putting the [<return: X>] attribute on the signature file AND the implementation file causes a compiler warning, about a change in the signature. Removing either removed the compiler warning, but this issue persists. Is that expected behaviour?
Also, putting the [<return: X>] attribute on the signature file AND the implementation file causes a compiler warning, about a change in the signature. Removing either removed the compiler warning, but this issue persists. Is that expected behaviour?
A warning is intentional if the attributes or their arguments are different.
Otherwise it is OK.
Also, the attributes are copied over, so it is correct to have attributes declared just at one of sig/impl.
Activity
DragonSA commentedon Oct 21, 2025
Also, putting the
[<return: X>]attribute on the signature file AND the implementation file causes a compiler warning, about a change in the signature. Removing either removed the compiler warning, but this issue persists. Is that expected behaviour?T-Gro commentedon Nov 10, 2025
A warning is intentional if the attributes or their arguments are different.
Otherwise it is OK.
Also, the attributes are copied over, so it is correct to have attributes declared just at one of sig/impl.
Add CodeGen regression test infrastructure and document first 10 issues
Fix: Remove buggy attribute rotation code that broke Option.Value com…
Add release note for dotnet#17904 and dotnet#19020 fix
Simplify regression tests for dotnet#17904 and dotnet#19020
Fix #17904 and #19020 (#19738)
edgarfgp commentedon Aug 7, 2026
Fixed in #19738
Rotate [<return: X>] attributes during binding normalization (#20356)