dotnet / dotnet/fsharp

A code refactoring for explicit return type annotation

Open
#15,562 21 comments 0 reactions 0 assignees View on GitHub
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

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.