fsharp
fsharp copied to clipboard
Respect the return qualifier for attributes on class methods
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
:heavy_exclamation_mark: Release notes required
:white_check_mark: Found changes and release notes in following paths:
Change path Release notes path Description src/Compilerdocs/release-notes/.FSharp.Compiler.Service/11.0.0.md