fsharp icon indicating copy to clipboard operation
fsharp copied to clipboard

Respect the return qualifier for attributes on class methods

Open DragonSA opened this issue 3 months ago • 1 comments

Description

Attributes attached to the return value of a class method (e.g. [<return: NotNull>]) were instead being attached to the method itself. This did not happen for functions (let bind). I refactored the logic out of TcNormalizedBinding (used by TcLetBinding and used that in AnalyzeAndMakeAndPublishRecursiveValue.

Fixes #19020

Checklist

  • [X] Test cases added
  • [ ] Performance benchmarks added in case of performance changes
  • [X] Release notes entry updated:

Sponsored by CP Dynamics

DragonSA avatar Oct 22 '25 20:10 DragonSA

:heavy_exclamation_mark: Release notes required


:white_check_mark: Found changes and release notes in following paths:

Change path Release notes path Description
src/Compiler docs/release-notes/.FSharp.Compiler.Service/11.0.0.md

github-actions[bot] avatar Oct 22 '25 20:10 github-actions[bot]