A code refactoring for explicit return type annotation
Open
Area-LangService-CodeRefactorings
Feature Request
good first issue
- Dominant language
- F#
- Stars
- 4.3k
- Forks
- 876
- Avg merge
- 4d 22h
- Merged PRs (30d)
- 144
Description
Given the code
`let add x y = x + y`
Create a refactoring that would suggesting rewriting it to
`let add x y : int = x + y`
I think this should be easy. We have:
1) Machinery to create refactorings
2) Methods to extract return type info - used in return type hints
_Originally posted by @psfinaki in https://github.com/dotnet/fsharp/issues/10421#issuecomment-1622467357_
Contributor guide
Assessment
This issue has not been assessed yet.