Skip to content

Suggestion: Add argument anotation #544

Open
@vincentremond

Description

@vincentremond

I use Rider a lot for F# development and there is a feature that I would love to have: Add type anotation for arguments.

For example, if I have the following function:

module Regex =
    let replace pattern replacement input =
        System.Text.RegularExpressions.Regex.Replace(input, pattern, replacement)

it won't compile because the compiler doesn't know which overload to choose based on the type of the arguments. I have to add the type anotation manually to at least one of the arguments:

module Regex =
    let replace pattern (replacement: string) input =
        System.Text.RegularExpressions.Regex.Replace(input, pattern, replacement)

And I don't necessarily want to add the type anotation for all arguments, just the ones that are missing.

So I would love to have a feature that would allow me to add the type anotation for a single argument, currently we can only add the type anotation for all arguments and to the function return type :

2023-07-05_17h43_38

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions