dotnet / dotnet/fsharp

Make "add type annotation" code refactoring applicable to all params

Open
#15,563 0 comments 1 reaction 0 assignees View on GitHub
Area-LangService-CodeRefactorings Feature Request
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

For the code:
`let add x y = x + y`

Add a code refactoring that will change it to:
`let add (x: int) (y: int) = x + y`

We already have the refactoring, it's just not used as a bulk one. Don't know what machinery is needed for this, probably something similar to what is there is code fixes.

_Originally posted by @psfinaki in https://github.com/dotnet/fsharp/issues/10421#issuecomment-1622467357_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.